DarkoKukovec / crypto-fs

Wrapper around node fs module that encrypts the files on the fly
MIT License
3 stars 6 forks source link

cfs.exists() #21

Open fusir opened 6 years ago

fusir commented 6 years ago

Hi, it would be interesting if the module implemented a file exists test. I know that unfortunately node is deprecating that feature from the API and suggesting use of stat instead. There is a novel reason for this module to have an exists though. If the real sizes option is turned on that means we have to decrypt potentially large files to tell if it exists or not.

DarkoKukovec commented 6 years ago

@fusir exist method should be implemented. Is it not working correctly?