|
recls
namespace.
More...Modules | |
recls.c++ | |
The recls C++ mapping. It resides within the recls::cpp namespace. | |
recls/C# | |
The recls C# mapping. | |
recls/COM | |
The recls COM mapping. | |
recls/D | |
The recls D mapping. | |
recls/Java | |
The recls Java mapping. | |
recls/Python | |
The recls/Python mapping. | |
recls/Ruby | |
The recls Ruby mapping. | |
recls.stl | |
The recls STL mapping. | |
recls API Version | |
#define | RECLS_VER_MAJOR 1 |
The major version number of RECLS. | |
#define | RECLS_VER_MINOR 6 |
The minor version number of RECLS. | |
#define | RECLS_VER_REVISION 1 |
The revision version number of RECLS. | |
#define | RECLS_VER RECLS_VER_1_6_1 |
The current composite version number of RECLS. | |
Error codes | |
#define | RECLS_RC_SEARCH_NO_CURRENT ((RECLS_QUAL(recls_rc_t))(-1 - 1001)) |
No search is currently active. | |
#define | RECLS_RC_INVALID_DIRECTORY ((RECLS_QUAL(recls_rc_t))(-1 - 1002)) |
The directory was invalid, or does not exist. | |
#define | RECLS_RC_NO_MORE_DATA ((RECLS_QUAL(recls_rc_t))(-1 - 1003)) |
No more data is available. | |
#define | RECLS_RC_OUT_OF_MEMORY ((RECLS_QUAL(recls_rc_t))(-1 - 1004)) |
Memory exhaustion. | |
#define | RECLS_RC_NOT_IMPLEMENTED ((RECLS_QUAL(recls_rc_t))(-1 - 1005)) |
Function not implemented. | |
#define | RECLS_RC_INVALID_SEARCH_TYPE ((RECLS_QUAL(recls_rc_t))(-1 - 1006)) |
Invalid search type. | |
#define | RECLS_RC_INVALID_SEARCH_PROTOCOL ((RECLS_QUAL(recls_rc_t))(-1 - 1007)) |
Invalid search protocol. | |
#define | RECLS_RC_UNEXPECTED ((RECLS_QUAL(recls_rc_t))(-1 - 1008)) |
Unexpected internal condition. | |
#define | RECLS_RC_DOT_RECURSIVE_SEARCH ((RECLS_QUAL(recls_rc_t))(-1 - 1009)) |
Cannot specify "." pattern in recursive search. | |
#define | RECLS_RC_SEARCH_CANCELLED ((RECLS_QUAL(recls_rc_t))(-1 - 1010)) |
Search was cancelled by callback. | |
#define | RECLS_RC_FTP_INIT_FAILED ((RECLS_QUAL(recls_rc_t))(-1 - 1011)) |
FTP infrastructure initialisation failed. | |
#define | RECLS_RC_FTP_CONNECTION_FAILED ((RECLS_QUAL(recls_rc_t))(-1 - 1012)) |
FTP connection failed. | |
#define | RECLS_RC_WRONG_ENTRY_TYPE ((RECLS_QUAL(recls_rc_t))(-1 - 1013)) |
Given entry was of wrong type. | |
#define | RECLS_RC_CANNOT_STAT_ROOT ((RECLS_QUAL(recls_rc_t))(-1 - 1014)) |
Cannot call stat() on root. | |
File system functions | |
size_t | Recls_GetRoots (recls_root_t *roots, size_t cRoots) |
Retrieves the file-system roots for the current operating system. | |
recls_char_t const * | Recls_GetPathNameSeparator (void) |
Returns the symbol used to separate distinct path names in path name lists. | |
recls_char_t const * | Recls_GetPathSeparator (void) |
Returns the symbol used to separate the directory parts within paths. | |
recls_char_t const * | Recls_GetWildcardsAll (void) |
Returns the wildcard symbol used to represent the "all files" for the current operating system. | |
Search control functions | |
recls_rc_t | Recls_Search (recls_char_t const *searchRoot, recls_char_t const *pattern, recls_uint32_t flags, hrecls_t *phSrch) |
Searches a given directory for matching files of the given pattern. | |
recls_rc_t | Recls_SearchProcess (recls_char_t const *searchRoot, recls_char_t const *pattern, recls_uint32_t flags, hrecls_process_fn_t pfn, recls_process_fn_param_t param) |
Searches a given directory for matching files of the given pattern, and processes them according to the given process function. | |
void | Recls_SearchClose (hrecls_t hSrch) |
Closes the given search. | |
recls_rc_t | Recls_Stat (recls_char_t const *path, recls_uint32_t flags, recls_info_t *phEntry) |
Retrieves the information for the given path. | |
Search enumeration functions | |
recls_rc_t | Recls_GetNext (hrecls_t hSrch) |
Advances the search one position. | |
recls_rc_t | Recls_GetDetails (hrecls_t hSrch, recls_info_t *phEntry) |
Retrieves the information for the current search position. | |
recls_rc_t | Recls_GetNextDetails (hrecls_t hSrch, recls_info_t *phEntry) |
Advances the search one position, and retrieves the information for the new position. | |
File entry information functions | |
void | Recls_CloseDetails (recls_info_t hEntry) |
Releases the resources associated with an entry info structure. | |
recls_rc_t | Recls_CopyDetails (recls_info_t hEntry, recls_info_t *phEntry) |
Copies an entry info structure. | |
recls_rc_t | Recls_OutstandingDetails (hrecls_t hSrch, recls_uint32_t *count) |
Reports on the number of outstanding (i.e. | |
Error handling functions | |
recls_rc_t | Recls_GetLastError (hrecls_t hSrch) |
Returns the last error code associated with the given search handle. | |
size_t | Recls_GetErrorString (recls_rc_t rc, recls_char_t *buffer, size_t cchBuffer) |
Gets the error string representing the given error. | |
size_t | Recls_GetLastErrorString (hrecls_t hSrch, recls_char_t *buffer, size_t cchBuffer) |
Gets the error string representing the current error associated with the given search handle. | |
Property elicitation functions | |
size_t | Recls_GetPathProperty (recls_info_t hEntry, recls_char_t *buffer, size_t cchBuffer) |
Retrieves the full path of the given entry recls_fileinfo_t. | |
size_t | Recls_GetDirectoryProperty (recls_info_t hEntry, recls_char_t *buffer, size_t cchBuffer) |
Retrieves the directory of the given entry recls_fileinfo_t. | |
size_t | Recls_GetDirectoryPathProperty (recls_info_t hEntry, recls_char_t *buffer, size_t cchBuffer) |
Retrieves the directory and drive of the given entry recls_fileinfo_t. | |
size_t | Recls_GetUNCDriveProperty (recls_info_t hEntry, recls_char_t *buffer, size_t cchBuffer) |
Retrieves the UNC drive property of the given entry recls_fileinfo_t. | |
size_t | Recls_GetFileProperty (recls_info_t hEntry, recls_char_t *buffer, size_t cchBuffer) |
Retrieves the file (filename + extension) of the given entry recls_fileinfo_t. | |
size_t | Recls_GetShortFileProperty (recls_info_t hEntry, recls_char_t *buffer, size_t cchBuffer) |
Retrieves the short version of the file of the given entry recls_fileinfo_t. | |
size_t | Recls_GetFileNameProperty (recls_info_t hEntry, recls_char_t *buffer, size_t cchBuffer) |
Retrieves the filename (not including extension, if any) of the given entry recls_fileinfo_t. | |
size_t | Recls_GetFileExtProperty (recls_info_t hEntry, recls_char_t *buffer, size_t cchBuffer) |
Retrieves the file extension of the given entry recls_fileinfo_t. | |
size_t | Recls_GetDirectoryPartProperty (recls_info_t hEntry, int part, recls_char_t *buffer, size_t cchBuffer) |
Retrieves a directory part of the given entry recls_fileinfo_t. | |
recls_bool_t | Recls_IsFileReadOnly (recls_info_t hEntry) |
Returns non-zero if the file entry is read-only. | |
recls_bool_t | Recls_IsFileDirectory (recls_info_t hEntry) |
Returns non-zero if the file entry represents a directory. | |
recls_bool_t | Recls_IsFileLink (recls_info_t hEntry) |
Returns non-zero if the file entry represents a link. | |
recls_bool_t | Recls_IsFileUNC (recls_info_t hEntry) |
Returns non-zero if the file entry's path is UNC. | |
void | Recls_GetSizeProperty (recls_info_t hEntry, recls_filesize_t *size) |
Acquires the size of the file entry. | |
recls_time_t | Recls_GetCreationTime (recls_info_t hEntry) |
Returns the time the file was created. | |
recls_time_t | Recls_GetModificationTime (recls_info_t hEntry) |
Returns the time the file was last modified. | |
recls_time_t | Recls_GetLastAccessTime (recls_info_t hEntry) |
Returns the time the file was last accessed. | |
recls_time_t | Recls_GetLastStatusChangeTime (recls_info_t hEntry) |
Returns the time the file status was last changed. | |
Extended API functions | |
recls_bool_t | Recls_IsDirectoryEmpty (recls_char_t const *dir) |
recls_bool_t | Recls_IsDirectoryEntryEmpty (recls_info_t hEntry) |
recls_filesize_t | Recls_CalcDirectorySize (recls_char_t const *dir) |
recls_filesize_t | Recls_CalcDirectoryEntrySize (recls_info_t hEntry) |
Search control functions | |
recls_rc_t | Recls_SearchFtp (recls_char_t const *host, recls_char_t const *username, recls_char_t const *password, recls_char_t const *searchRoot, recls_char_t const *pattern, recls_uint32_t flags, hrecls_t *phSrch) |
Searches a given directory for matching files of the given pattern. | |
Property elicitation functions | |
void | Recls_GetDriveProperty (recls_info_t hEntry, recls_char_t *pchDrive) |
Gets the drive associated with the given file entry info structure. | |
Enumerations | |
enum | RECLS_FLAG { RECLS_F_FILES = 0x00000001, RECLS_F_DIRECTORIES = 0x00000002, RECLS_F_LINKS = 0x00000004, RECLS_F_DEVICES = 0x00000008, RECLS_F_TYPEMASK = 0x00000FFF, RECLS_F_RECURSIVE = 0x00010000, RECLS_F_NO_FOLLOW_LINKS = 0x00020000, RECLS_F_DIRECTORY_PARTS = 0x00040000, RECLS_F_DETAILS_LATER = 0x00080000, RECLS_F_PASSIVE_FTP = 0x00100000 } |
Search flags. More... |
recls
namespace.
|
Cannot call stat() on root.
|
|
Cannot specify "." pattern in recursive search.
|
|
FTP connection failed.
|
|
FTP infrastructure initialisation failed.
|
|
The directory was invalid, or does not exist.
|
|
Invalid search protocol.
|
|
Invalid search type.
|
|
No more data is available.
|
|
Function not implemented.
|
|
Memory exhaustion.
|
|
Search was cancelled by callback. It did not otherwise fail. |
|
No search is currently active.
|
|
Unexpected internal condition.
|
|
Given entry was of wrong type.
|
|
The current composite version number of RECLS.
|
|
The major version number of RECLS.
|
|
The minor version number of RECLS.
|
|
The revision version number of RECLS.
|
|
Search flags. These flags moderate the search behaviour of the Recls_Search and Recls_SearchProcess functions.
|
|
|
|
|
|
Releases the resources associated with an entry info structure.
|
|
Copies an entry info structure.
|
|
Returns the time the file was created.
|
|
Retrieves the information for the current search position.
|
|
Retrieves a directory part of the given entry recls_fileinfo_t.
|
|
Retrieves the directory and drive of the given entry recls_fileinfo_t.
|
|
Retrieves the directory of the given entry recls_fileinfo_t.
|
|
Gets the drive associated with the given file entry info structure.
|
|
Gets the error string representing the given error.
|
|
Retrieves the file extension of the given entry recls_fileinfo_t.
|
|
Retrieves the filename (not including extension, if any) of the given entry recls_fileinfo_t.
|
|
Retrieves the file (filename + extension) of the given entry recls_fileinfo_t.
|
|
Returns the time the file was last accessed.
|
|
Returns the last error code associated with the given search handle.
|
|
Gets the error string representing the current error associated with the given search handle.
|
|
Returns the time the file status was last changed.
|
|
Returns the time the file was last modified.
|
|
Advances the search one position.
|
|
Advances the search one position, and retrieves the information for the new position.
|
|
Returns the symbol used to separate distinct path names in path name lists.
|
|
Retrieves the full path of the given entry recls_fileinfo_t.
|
|
Returns the symbol used to separate the directory parts within paths.
|
|
Retrieves the file-system roots for the current operating system. It is used as follows:
|
|
Retrieves the short version of the file of the given entry recls_fileinfo_t.
|
|
Acquires the size of the file entry.
|
|
Retrieves the UNC drive property of the given entry recls_fileinfo_t.
|
|
Returns the wildcard symbol used to represent the "all files" for the current operating system.
|
|
|
|
|
|
Returns non-zero if the file entry represents a directory.
|
|
Returns non-zero if the file entry represents a link.
|
|
Returns non-zero if the file entry is read-only.
|
|
Returns non-zero if the file entry's path is UNC.
|
|
Reports on the number of outstanding (i.e. in client code) file entry info structures
|
|
Searches a given directory for matching files of the given pattern.
|
|
Closes the given search.
|
|
Searches a given directory for matching files of the given pattern.
|
|
Searches a given directory for matching files of the given pattern, and processes them according to the given process function.
|
|
Retrieves the information for the given path.
|
|
recls Library documentation © Synesis Software Pty Ltd, 2001-2005 |