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

- old
+ new

@@ -4,16 +4,14 @@ module Imap module Backup module Serializer class Directory - include Imap::Backup::Utils - def initialize(path, folder) @path, @folder = path, folder permissions = 0700 - check_permissions(@path, permissions) - make_folder(@path, @folder, permissions) + Imap::Backup::Utils.check_permissions(@path, permissions) + Imap::Backup::Utils.make_folder(@path, @folder, permissions) end def uids return [] if ! File.exist?(directory)