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