Commit 89cde8df authored by Julien Fontanet's avatar Julien Fontanet

fix(rename): dont create missing source file

parent fd21ee2d
var BigInt = require('../tools/bigint'); var BigInt = require('../tools/bigint');
var SMB2Request = require('../tools/smb2-forge').request; var SMB2Request = require('../tools/smb2-forge').request;
var FILE_OPEN_IF = require('../structures/constants').FILE_OPEN_IF; var FILE_OPEN = require('../structures/constants').FILE_OPEN;
/* /*
* rename * rename
...@@ -31,7 +31,7 @@ module.exports = function rename(oldPath, newPath, options, cb) { ...@@ -31,7 +31,7 @@ module.exports = function rename(oldPath, newPath, options, cb) {
if (err) if (err)
SMB2Request( SMB2Request(
'create', 'create',
{ path: oldPath, createDisposition: FILE_OPEN_IF }, { path: oldPath, createDisposition: FILE_OPEN },
connection, connection,
function(err, file) { function(err, file) {
if (err) cb && cb(err); if (err) cb && cb(err);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment