Skip to content

rsync problem with destination path #71

@mean-cj

Description

@mean-cj

hello when i create a new file on new folder
rsync can't recursive and auto create new directory

example console log i see end of destination path doesn't have black slash (/)
rsync avzpur /NEW_FOLDER_ABC/new_file.php /NEW_FOLDER_ABC

Can not create new folder because rsync created a "NEW_FOLDER_ABC" to file

is correct command is
rsync avzpur /NEW_FOLDER_ABC/new_file.php /NEW_FOLDER_ABC/

How to fixed edit on
atom-sync-cygwin\lib\controller\service-controller.coffee
add path.sep to end of dst

    switch direction
      when 'up'
...
          dst = @genRemoteString config.remote.user, config.remote.host,
            if fs.isDirectorySync obj then path.join config.remote.path, relativePath else (path.dirname (path.join config.remote.path, relativePath))+path.sep
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions