Closed papertigers closed 9 years ago
Currently manta-sync will file.substr(localdir.length) leaving a basefile like '\foo.txt', then later when you have the posix join you get a path like '/mantauser/stor/\foo.txt'
'\foo.txt'
'/mantauser/stor/\foo.txt'
This change chops off the leading / or \
/ or \
fixed by https://github.com/bahamas10/node-manta-sync/pull/15
relies on https://github.com/joyent/node-manta/pull/210
Currently manta-sync will file.substr(localdir.length) leaving a basefile like
'\foo.txt'
, then later when you have the posix join you get a path like'/mantauser/stor/\foo.txt'
This change chops off the leading
/ or \