lib/imap/backup/account/folder_ensurer.rb in imap-backup-14.4.4 vs lib/imap/backup/account/folder_ensurer.rb in imap-backup-14.4.5
- old
+ new
@@ -10,9 +10,12 @@
class Account::FolderEnsurer
def initialize(account:)
@account = account
end
+ # Creates the account's base directory and sets its permissions
+ # @raise [RuntimeError] is the account's backup path is not set
+ # @return [void]
def run
raise "The backup path for #{account.username} is not set" if !account.local_path
Serializer::FolderMaker.new(
base: File.dirname(account.local_path),