diff --git a/lib/rest-ftp-daemon/job.rb b/lib/rest-ftp-daemon/job.rb
index <HASH>..<HASH> 100644
--- a/lib/rest-ftp-daemon/job.rb
+++ b/lib/rest-ftp-daemon/job.rb
@@ -271,7 +271,8 @@ module RestFtpDaemon
       ftp_connect_and_login
 
       # Connect remote server, login and chdir
-      ftp_chdir_or_buildpath @target_url.path
+      path = '/' + Helpers.extract_dirname(@target_url.path).to_s
+      ftp_chdir_or_buildpath path
 
       # Check source files presence and compute total size, they should be there, coming from Dir.glob()
       @transfer_total = 0
bugfix: a target path without subdirs caused a process crash