13 #ifndef MAC_FILE_MANAGER_H
14 #define MAC_FILE_MANAGER_H
18 #if defined(__APPLE__)
33 LocalApplicationSupportFolder = 0x000,
38 UserDocumentsFolder = 0x100,
static bool showItemInFileSystemBrowser(const std::string &file)
Activates the Finder and opens one window selecting the specified item.
FMFolderType
Specifies the different folder types.
@ UserCachesFolderType
Specifies the Caches folder (location of discardable cache files)
@ UserPreferencesFolderType
Specifies the Preferences folder.
@ UserDesktopFolder
Specifies the Desktop folder.
@ UserApplicationSupportFolder
Specifies the Application Support folder. This folder contains code and data files needed by third-pa...
@ LocalCachesFolderType
Specifies the Caches folder (location of discardable cache files)
@ LocalPreferencesFolderType
Specifies the Preferences folder.
@ UserDownloadsFolder
Specifies the Downloads folder.
static bool authorizeAndInstallItem(const std::string &src, const std::string &dst)
Request authorization to elevate privileges and install item (UTF8)
static bool isFilePackageAtPath(const std::string &path)
Determines whether the specified path points to a file package (UTF8)
static bool authorizeAndCopyItem(const std::string &src, const std::string &dst)
Request authorization to elevate privileges and copy item (UTF8, macOS 10.14)
static std::string locateFolder(FMFolderType type)
Obtains location information for system-related directories (UTF8)
static bool itemConformsToUTI(const std::string &path, const std::string &uti)
Returns 'true' if the given filesystem item conforms to the specified Uniform Type Identifier (UTI)
static bool moveItemToTrash(const std::string &file, bool hidden=true)
The item is moved to the trash folder on the volume containing the item. Returns 'true' if successful...
static std::string getUserTemporaryItemsFolder()
Returns the path of the temporary directory for the current user (UTF8)
static std::string getItemUTI(const std::string &path)
Returns the Uniform Type Identifier (UTI) of this filesystem item or an empty string (UTF8)
#define OSXSUPPORT_PUBLIC_API
Symbol visibility macros.