From 31cbdf86a5b9ba2d24ce2bb5b2eeb5b2ec4bcbd0 Mon Sep 17 00:00:00 2001 From: Mark Moser Date: Thu, 6 Oct 2016 22:26:37 -0500 Subject: [PATCH] seed user root folder --- app/services/ftp_config.rb | 1 + 1 file changed, 1 insertion(+) 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