mirror of
https://github.com/jprichardson/node-fs-extra.git
synced 2026-01-25 16:42:57 +00:00
reverted fs.move change
This commit is contained in:
parent
96e36504a3
commit
f9cb10dff4
@ -14,15 +14,6 @@ function mv(source, dest, options, callback){
|
||||
options = {}
|
||||
}
|
||||
|
||||
source = path.normalize(source)
|
||||
dest = path.normalize(dest)
|
||||
|
||||
var diff = path.relative(source, dest)
|
||||
if (diff !== '' && diff.indexOf('..')) {
|
||||
var err = new Error("Can't move source into dest if dest is in source.")
|
||||
return callback(err)
|
||||
}
|
||||
|
||||
var shouldMkdirp = !!options.mkdirp
|
||||
var clobber = options.clobber !== false
|
||||
var limit = options.limit || 16
|
||||
|
||||
@ -149,7 +149,7 @@ describe("move", function() {
|
||||
})
|
||||
})
|
||||
|
||||
describe('> when trying to a move a folder into itself', function() {
|
||||
describe.skip('> when trying to a move a folder into itself', function() {
|
||||
it('should produce an error', function(done) {
|
||||
var SRC_DIR = path.join(TEST_DIR, 'test')
|
||||
var DEST_DIR = path.join(TEST_DIR, 'test', 'test')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user