You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Version: 10.12.0 Platform: Darwin m-c02x6042jgh7 18.2.0 Darwin Kernel Version 18.2.0: Mon Nov 12 20:24:46 PST 2018; root:xnu-4903.231.4~2/RELEASE_X86_64 x86_64
problem
fs.writeFile isn't guaranteed to match the requested filename casing.
example:
fs.writeFile('/path/to/Thing.js', ...) may generate /path/to/Thing.js, but, a subsequent process that runs
fs.writeFile('/path/to/thing.js', ...) may generate /path/to/Thing.js, instead of/path/to/thing.js
this occurs when writing a file that does not exist, but previously existed in different casing.
reproduction
it's tricky. i've tried--but i cannot generate a set of reliable conditions that induces the failure.
i've observed this twice in the wild now, on two different OSX machines.
i'm not 100% convinced it's even a node bug--it could very well be an OSX issue. i found that restarting my system resolved one occurrence of the failure, but not all.
sorry that i cannot reproduce reliably. however, it's the repeatability of which is in fact the problem that i am reporting! :)
Version: 10.12.0
Platform: Darwin m-c02x6042jgh7 18.2.0 Darwin Kernel Version 18.2.0: Mon Nov 12 20:24:46 PST 2018; root:xnu-4903.231.4~2/RELEASE_X86_64 x86_64
problem
example:
fs.writeFile('/path/to/Thing.js', ...)may generate/path/to/Thing.js, but, a subsequent process that runsfs.writeFile('/path/to/thing.js', ...)may generate/path/to/Thing.js, instead of/path/to/thing.jsthis occurs when writing a file that does not exist, but previously existed in different casing.
reproduction
it's tricky. i've tried--but i cannot generate a set of reliable conditions that induces the failure.
i've observed this twice in the wild now, on two different OSX machines.
i'm not 100% convinced it's even a node bug--it could very well be an OSX issue. i found that restarting my system resolved one occurrence of the failure, but not all.
sorry that i cannot reproduce reliably. however, it's the repeatability of which is in fact the problem that i am reporting! :)