version 1.48, 2007/06/05 09:33:38
|
version 1.48.6.1, 2007/09/12 15:46:57
|
|
|
*/ | */ |
static Boolean removeFileNoCase(const String& path); | static Boolean removeFileNoCase(const String& path); |
| |
|
/** Produces an array of filenames that match the given pattern under |
|
the directory given by path. The pattern is limited to asterisks |
|
only. Examples: "*.txt", "hello*world.c". Returns true on success. |
|
Return false if the base diretory does not exist or cannot be |
|
accessed. |
|
*/ |
|
static Boolean FileSystem::glob( |
|
const String& path, |
|
const String& pattern, |
|
Array<String>& filenames); |
|
|
|
/** Removes all files located under the directory given by *path* that |
|
match the given pattern. Uses FileSystem::glob() to match file names. |
|
Example: removeMatchingFiles("/tmp", "*.txt"). Fails if the pattern |
|
matches a directory. May only remove ordinary files. |
|
*/ |
|
static Boolean removeMatchingFiles( |
|
const String& path, const String& pattern); |
|
|
/** Loads contents of the file into the array. Note that the file is | /** Loads contents of the file into the array. Note that the file is |
opened using binary mode (newline sequences are not expanded to | opened using binary mode (newline sequences are not expanded to |
carriage-return-line-feed sequences on Windows). | carriage-return-line-feed sequences on Windows). |