Hot Door CORE  0.7.0
Adobe® Illustrator® Plug-in Library
Typedefs | Functions
hdicoreFiles.h File Reference

Header file for file and folder manipulation from an Illustrator plugin. More...

Typedefs

typedef std::vector< std::string > hdi::core::files::StringVector
 

Functions

bool hdi::core::files::exists (const std::string &filePath_)
 Checks for the existence of a file or folder. More...
 
bool hdi::core::files::copy (const std::string &filePath_, const std::string &destPath_)
 Copies a source file to a destination path. More...
 
bool hdi::core::files::rename (const std::string &filePath_, const std::string &newName_)
 Renames a file. More...
 
bool hdi::core::files::move (const std::string &fromFilePath_, const std::string &toFolderPath_)
 Moves a file from one location to another. More...
 
int64_t hdi::core::files::getSize (const std::string &filePath_)
 Returns the size of a file in bytes. More...
 
std::string hdi::core::files::getTextContents (const std::string &filePath_)
 Gets the contents of a text-based file, assumed to be in UTF-8 encoding. More...
 
bool hdi::core::files::setTextContents (const std::string &filePath_, const std::string &contents_)
 Sets the contents of a text-based file in UTF-8 encoding. More...
 
bool hdi::core::files::getPermissions (const std::string &filePath_, mode_t &perms__)
 Gets the permission bits of a file or folder. More...
 
bool hdi::core::files::makeDirectory (const std::string &path_, const mode_t perms_)
 Cross-platform function to create a directory at a given path with given permissions. More...
 
bool hdi::core::files::filesInDirectory (const std::string &path_, StringVector &files__)
 Cross-platform function to retrieve the names of every file in a given directory. More...
 
bool hdi::core::files::moveToTrash (const std::string &filePath_)
 Moves a file to the Trash (Mac) or Recycle Bin (Windows) More...
 
bool hdi::core::files::ungzip (const std::string &sourcePath_, const std::string &destPath_)
 Un-gzips a source file to a destination path. More...
 
std::string hdi::core::files::platformPrefsPath (const std::string &subfolder_, const bool create_=true)
 Gets the prefs/registration/etc. folder path (given a subfolder inside it) More...
 

Detailed Description

Header file for file and folder manipulation from an Illustrator plugin.