Looking at the NFS API I can see no way to get the list of entries without it including entries for deleted files.
UPDATE: Ah, I’ve just rememberd I’m still using safe_app_nodejs v0.8.1, so maybe this is different in v0.9.1? I think I’ll bump back up to 0.9.1 anyway.
The way I am testing if an entry has been deleted is to try nfs.fetch(). If the entry has been deleted, this gives an unhelpful error message/code which looks like it could happen for other reasons:
-1: Core error: Error while serialising/deserialising: Deserialise error: IoError: failed to fill whole buffer
Is there a better way to test if an entry has been deleted?
And with a regular MD (rather than NFS API) what’s the official way to determine that an entry has been deleted? Seems a bit brittle to use ‘-1 serialisation error’ if that might be caused in other ways.
Also, while I’m asking. Do you know if the reason the Web Hosting Manager requires files to be deleted before re-uploading them is due to an NFS bug? I’m finding that
update() rarely works an an existing entry, and I note that the WHM only ever does it on a deleted file. This may be my bug, but as far as I can tell that isn’t the cause. Still investigating though.