Closed lei-cao closed 4 years ago
https://github.com/isomorphic-git/lightning-fs/blob/master/src/CacheFS.js#L202 The oldFile is unlinked before the newFile is set correctly, when lookup fail, e.g. the newFilepath doesn't exist. the old file will be lost.
oh fudge. Good catch!
:tada: This issue has been resolved in version 3.3.2 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
https://github.com/isomorphic-git/lightning-fs/blob/master/src/CacheFS.js#L202 The oldFile is unlinked before the newFile is set correctly, when lookup fail, e.g. the newFilepath doesn't exist. the old file will be lost.