Merge pull request #272 from vatesfr/abhamonr-fix-smb-backup-location
Ensure remote smb path is a directory. (fix vatesfr/xo-web#865)
This commit is contained in:
commit
90f0795416
@ -54,6 +54,11 @@ export default class SmbHandler extends RemoteHandlerAbstract {
|
||||
? this._remote.path
|
||||
: ''
|
||||
|
||||
// Ensure remote path is a directory.
|
||||
if (path !== '' && path[path.length - 1] !== '\\') {
|
||||
path += '\\'
|
||||
}
|
||||
|
||||
if (file) {
|
||||
path += file.replace(/\//g, '\\')
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user