Skip to content

Rose::StringUtility::FileNameLocation

Find file names non‐recursively.

Synopsis

Declared in <src/Rose/StringUtility/FileUtility.h>

Members

Name

Description

FILENAME_LOCATION_UNKNOWN

Location cannot be determined.

FILENAME_LOCATION_USER

User/application file.

FILENAME_LOCATION_LIBRARY

System/library file.

FILENAME_LOCATION_NOT_EXIST

File does not exist.

Description

Scans the directory named pathString and returns a list of files in that directory which have patternString as a substring of their name. Note that patternString is not a glob or regular expression. The return value strings are formed by concatenating the pathString and the file name with an intervening slash.

This function does not work for non‐POSIX systems. Consider using std::filesystem instead, which has a directory iterator that works for non‐POSIX systems also.

Created with MrDocs