-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathgraceful-fs.node.txt
25 lines (21 loc) · 1.7 KB
/
graceful-fs.node.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
┏━━━━━━━━━━━━━━━━━┓
┃ GRACEFUL-FS ┃
┗━━━━━━━━━━━━━━━━━┛
VERSION ==> #4.2.11
GRACEFUL-FS #Fixes some behavior of core FS error handling.
#Ponyfill of FS where:
# - handles EMFILE|ENFILE (too many open files):
# - only for FS.readFile|writeFile|appendFile|reeaddir() and FS|STREAM.open()
# - queue the call instead of error: wait for FS.close() then retry
# - add FS.lutimes[Sync]()
# - ignore following errors for FS.*chown|chmod*():
# - ENOSYS: filesystem does not support chown
# - EINVAL: file that can never be chowned, e.g. NFS mount
# - EPERM: user is not root
# - make FS.rename() retry on EACCES|EPERM for up to one minute, on Windows:
# - reason: some anti-virus software lock directories while running
# - make FS.read[Sync]() retry on EAGAIN up to 10 times:
# - EAGAIN means file temporary unavailable, but will be back up
# - caches process.cwd()
# - patches process.chdir() to invalidate that cache
GRACEFUL-FS.gracefulify(FS) #Polyfills FS