Add the base_path for the local repository
Remove '/' from path when creating necessary directories
Upload file to the correct path on the ftp server