Deciding if a file is in nsf format?

Hi,

I need to decide about a file found in the Domino Data Dir hierarchy if it is nsf format or not.

I am using NSFDbOpen on each candidate, considering that ultimately only domino can decide wich file is nsf and which is not. (I am doing this, since I observed that each .nsf and .ntf file has a certain binary signature in the very begining of the file, and also that if I rename a valid .nsf file with a different extension (e.g. “.aaa”), domino still recognize it as nsf).

Unfortunately NSFDbOpen, does not reject certain non-nsf files (a list follow) as ERR_NOT_NSF, instead giving strange errors (see the list bellow), giving false alarms. This is problematic, since the tool should run in background, and each error must be considered for human review.

Any ideea how the errors are triggered or how to use a different logic for deciding about a disk file if it is in nsf format?

Thanks,

Florin

Errors follow:

Error opening “setuplog.txt” (499/Invalid directory name or device not ready.).

Error opening “domino/html/inotes5/help/bsscdht1.js” (8501/The network path was not found.

Error opening “domino/html/inotes5/help/bsscdht2.js” (8501/The network path was not found.

Error opening “domino/html/inotes5/help/bsscdhtm.js” (8501/The network path was not found.

Error opening “domino/html/inotes5/help/chatnames.gif” (499/Invalid directory name or device not ready.).

Error opening “domino/template/prfframe.htm” (499/Invalid directory name or device not ready.).

Error opening “IBM_TECHNICAL_SUPPORT/console.log” (525/This database is currently being used by someone else. In order to share a Notes database, all users must use a Domino Server instead of a File Server.).

Error opening “modems/ac56kflx.mdm” (499/Invalid directory name or device not ready.).