whatwg / fs

File System Standard
https://fs.spec.whatwg.org/
Other
236 stars 19 forks source link

Support locking of directory entries #137

Open a-sully opened 1 year ago

a-sully commented 1 year ago

Currently, a lock may only be taken on a file entry. This should be extended to support locking directories, too.

This is one of the proposed changes to support #34, but it's also needed to properly support operations which modify a directory (such as remove() #9, removeEntry(), and move() #10 of directories)

Operations which modify a directory should require taking an exclusive lock on the directory, which should only succeed if no contained file is locked