lib/eco/api/usecases/default_cases/samples/sftp_case.rb in eco-helpers-3.0.14 vs lib/eco/api/usecases/default_cases/samples/sftp_case.rb in eco-helpers-3.0.15
- old
+ new
@@ -69,10 +69,10 @@
rm_fd = options.dig(:sftp, :remote_folder) || sftp_config.remote_folder
rm_tf || [rm_fd, remote_subfolder].compact.join('/')
end
def to_remote_path(file)
- File.join(remote_folder, file)
+ [remote_folder, file].compact.join('/')
end
def local_folder
options.dig(:sftp, :local_folder) || "."
end