diff options
Diffstat (limited to 'src/library.js')
-rw-r--r-- | src/library.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/library.js b/src/library.js index aaef2f74..53f0a34b 100644 --- a/src/library.js +++ b/src/library.js @@ -3454,8 +3454,7 @@ LibraryManager.library = { ___setErrNo(ERRNO_CODES.EBUSY); return -1; } else if (newObj.parentPath && - newObj.parentPath.indexOf(oldObj.parentPath) == 0 && - newObj.parentPath != oldObj.parentPath) { + newObj.parentPath.indexOf(oldObj.path) == 0) { ___setErrNo(ERRNO_CODES.EINVAL); return -1; } else if (newObj.exists && newObj.object.isFolder) { |