|
TPCCLIB
|
Functions for checking if file exists or how many files do exist. More...
Go to the source code of this file.
Functions | |
| int | fileExist (const char *filename) |
| unsigned short int | pathFileNr (const char *pathname) |
| unsigned short int | pathFileList (const char *pathname, IFT *ift) |
Functions for checking if file exists or how many files do exist.
Definition in file filexist.c.
| int fileExist | ( | const char * | filename | ) |
Check if specified file (not path) exists.
| filename | Name of file to check. |
Definition at line 17 of file filexist.c.
Referenced by anaExists(), dcmFileList(), imgRead(), imgWriteNifti(), micropetExists(), niftiExists(), niftiWriteHeader(), pathCreate(), pathFileList(), pathFileNr(), pathRemove(), and pathRemoveFiles().
| unsigned short int pathFileList | ( | const char * | pathname, |
| IFT * | ift ) |
List the names regular files in specified path into IFT structure. File names will contain the directory path.
| pathname | Name of path. |
| ift | Pointer to initiated IFT structure; any previous contents are kept. |
Definition at line 83 of file filexist.c.
Referenced by dcmFileList(), imgRead(), and pathRemoveFiles().
| unsigned short int pathFileNr | ( | const char * | pathname | ) |
| pathname | Name of path. |
Definition at line 33 of file filexist.c.
Referenced by imgRead(), and imgWriteDICOM().