duna-oss / flystorage

Flystorage; File storage abstraction for Node / TypeScript
https://flystorage.dev/
183 stars 13 forks source link

Can't move/rename folder with sub-folders Windows #64

Closed N1cE-me closed 4 days ago

N1cE-me commented 2 weeks ago

I'm trying to move/rename folder with sub-folders using storage.moveFile method, but got error:

Unable to move file. Reason: EPERM: operation not permitted, rename 'oldFolderName' -> 'newFolderName'

In case without sub-folders (but include files) it works correct

image

frankdejonge commented 1 week ago

@N1cE-me are you able to move it using plain old JS? As in, is this a windows limitation perhaps?

N1cE-me commented 4 days ago

This issue was fixed by moving storage folder outside of project. Prev structure:

So this bug with OS limitations, because my VS Code working with storage directory and EPERM means File/Folder already in use

2 days researching and simple fix, sorry for disturbing... I hope this will be useful to someone