26#if ! DOXYGEN && (JUCE_MAC || JUCE_IOS)
27 using OSType =
unsigned int;
168 String getFileName()
const;
196 String getFileExtension()
const;
229 String getFileNameWithoutExtension()
const;
237 int hashCode()
const;
244 int64 hashCode64()
const;
279 File getParentDirectory()
const;
312 bool putNumbersInBrackets =
true)
const;
323 File getNonexistentSibling (
bool putNumbersInBrackets =
true)
const;
389 Time getLastModificationTime()
const;
396 Time getLastAccessTime()
const;
403 Time getCreationTime()
const;
463 Result createDirectory()
const;
491 bool deleteRecursively (
bool followSymlinks =
false)
const;
519 bool moveFileTo (
const File& targetLocation)
const;
531 bool copyFileTo (
const File& targetLocation)
const;
543 bool replaceFileIn (
const File& targetLocation)
const;
567 findFilesAndDirectories = 3,
568 ignoreHiddenFiles = 4
608 FollowSymlinks followSymlinks = FollowSymlinks::yes)
const;
615 int findChildFiles (
Array<File>& results,
int whatToLookFor,
617 FollowSymlinks followSymlinks = FollowSymlinks::yes)
const;
636 int getNumberOfChildFiles (
int whatToLookFor,
642 bool containsSubDirectories()
const;
662 std::unique_ptr<FileInputStream> createInputStream()
const;
695 std::unique_ptr<FileOutputStream> createOutputStream (
size_t bufferSize = 0x8000)
const;
717 String loadFileAsString()
const;
793 bool hasIdenticalContentTo (
const File& other)
const;
856 bool startAsProcess (
const String& parameters =
String())
const;
954 #if JUCE_WINDOWS || DOXYGEN
965 #if JUCE_WINDOWS || DOXYGEN
1044 static bool areFileNamesCaseSensitive();
1047 static bool isAbsolutePath (
StringRef path);
1057 static String addTrailingSeparator (
const String& path);
1069 File getLinkedTarget()
const;
1084 #if JUCE_WINDOWS || DOXYGEN
1095 #if JUCE_MAC || JUCE_IOS || DOXYGEN
1103 #if JUCE_MAC || DOXYGEN
1108 #if JUCE_MAC || JUCE_IOS
1128 return firstFile.isDirectory() ? -1 : 1;
1130 #if NAMES_ARE_CASE_SENSITIVE
1140 #if JUCE_ALLOW_STATIC_NULL_VARIABLES && ! defined (DOXYGEN)
1156 String getPathUpToLastSlash()
const;
1157 bool isNonEmptyDirectory()
const;
1160 bool copyInternal (
const File&)
const;
1161 bool moveInternal (
const File&)
const;
1162 bool replaceInternal (
const File&)
const;
1163 bool setFileTimesInternal (int64 m, int64 a, int64 c)
const;
1164 void getFileTimesInternal (int64& m, int64& a, int64& c)
const;
1165 bool setFileReadOnlyInternal (
bool)
const;
1166 bool setFileExecutableInternal (
bool)
const;
int getVolumeSerialNumber() const
bool isSymbolicLink() const
bool isOnHardDisk() const
static void findFileSystemRoots(Array< File > &results)
bool setAsCurrentWorkingDirectory() const
bool isOnCDRomDrive() const
bool isOnRemovableDrive() const
int64 getVolumeTotalSize() const
int64 getBytesFreeOnVolume() const
bool hasWriteAccess() const
static File JUCE_CALLTYPE getSpecialLocation(const SpecialLocationType type)
void revealToUser() const
@ globalApplicationsDirectory
@ commonDocumentsDirectory
@ userApplicationDataDirectory
@ commonApplicationDataDirectory
static juce_wchar getSeparatorChar()
bool hasReadAccess() const
String getVolumeLabel() const
uint64 getFileIdentifier() const
String getVersion() const
String getNativeLinkedTarget() const
static File getCurrentWorkingDirectory()
static StringRef getSeparatorString()