lib/imap/backup/serializer/directory.rb in imap-backup-0.0.2 vs lib/imap/backup/serializer/directory.rb in imap-backup-0.0.3

- old
+ new

@@ -1,17 +1,19 @@ # encoding: utf-8 +require 'fileutils' module Imap module Backup module Serializer class Directory include Imap::Backup::Utils def initialize(path, folder) @path, @folder = path, folder - check_permissions(@path, 0700) - make_folder(@path, @folder, 'g-wrx,o-wrx') + permissions = 0700 + check_permissions(@path, permissions) + make_folder(@path, @folder, permissions) end def uids return [] if ! File.exist?(directory)