26StringArray DirectoryIterator::parseWildcards (
const String& pattern)
29 s.addTokens (pattern,
";,",
"\"'");
31 s.removeEmptyStrings();
35bool DirectoryIterator::fileMatches (
const StringArray&
wildcards,
const String& filename)
38 if (filename.matchesWildcard (w, ! File::areFileNamesCaseSensitive()))
44bool DirectoryIterator::next()
46 return next (
nullptr,
nullptr,
nullptr,
nullptr,
nullptr,
nullptr);
49JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE (
"-Wdeprecated-declarations")
50JUCE_BEGIN_IGNORE_WARNINGS_MSVC (4996)
53 Time* modTime, Time* creationTime,
bool* isReadOnly)
70 while (
fileFinder.next (filename, &isDirectory,
72 fileSize, modTime, creationTime, isReadOnly))
76 if (! filename.containsOnly (
"."))
91 || ! fullPath.isSymbolicLink()
107 if (matches && (isRecursive ||
wildCards.size() > 1))
111 matches = ! isHidden;
135JUCE_END_IGNORE_WARNINGS_GCC_LIKE
136JUCE_END_IGNORE_WARNINGS_MSVC
138const File& DirectoryIterator::getFile()
const
149float DirectoryIterator::getEstimatedProgress()
const
@ ignoreHiddenFiles
Add this flag to avoid returning any hidden files in the results.
@ findDirectories
Use this flag to indicate that you want to find directories.
@ findFilesAndDirectories
Use this flag to indicate that you want to find both files and directories.
@ findFiles
Use this flag to indicate that you want to find files.
@ yes
Requests that a file system traversal follow all symbolic links.
@ noCycles
Requests that a file system traversal may follow symbolic links, but should attempt to skip any symbo...
static File createFileWithoutCheckingPath(const String &absolutePath) noexcept
Creates a file that simply contains this string, without doing the sanity-checking that the normal co...
Type jlimit(Type lowerLimit, Type upperLimit, Type valueToConstrain) noexcept
Constrains a value to keep it within a given range.
Type unalignedPointerCast(void *ptr) noexcept
Casts a pointer to another type via void*, which suppresses the cast-align warning which sometimes ar...
long long int64
A platform-independent 64-bit integer type.