diff --git a/app/services/ftp_config.rb b/app/services/ftp_config.rb index dce8684..6113f54 100644 --- a/app/services/ftp_config.rb +++ b/app/services/ftp_config.rb @@ -11,6 +11,7 @@ class FtpConfig def build_user_configs accounts Array(accounts).each do |account| File.open("#{config_path}#{account.username}", "w+") do |file| + FileUtils.mkdir_p "#{ftp_root}#{account.home_folder}" file.write "local_root=#{ftp_root}#{account.home_folder}" end end