|
PWIZ_API_DECL void | pwiz::util::force_close_handles_to_filepath (const std::string &filepath, bool closeMemoryMappedSections=false) noexcept(true) |
| on Windows, closes all file handles and memory mapped sections relating to the given filepath
|
|
PWIZ_API_DECL int | pwiz::util::expand_pathmask (const bfs::path &pathmask, vector< bfs::path > &matchingPaths) |
| expands (aka globs) a pathmask to zero or more matching paths and returns the number of matching paths
|
|
PWIZ_API_DECL void | pwiz::util::copy_directory (const bfs::path &from, const bfs::path &to, bool recursive=true, boost::system::error_code *ec=0) |
| if recursive is true, then copies "from" and all its contents to "to"; if "to" already exists or the copy fails for another reason, the error is reported in one of two ways:
|
|
PWIZ_API_DECL std::string | pwiz::util::abbreviate_byte_size (boost::uintmax_t byteSize, ByteSizeAbbreviation abbreviationType=ByteSizeAbbreviation_SI) |
| abbreviates a byte size (file or RAM) as a readable string, using the specified notation
|
|
PWIZ_API_DECL bool | pwiz::util::isHTTP (const std::string &filepath) |
|
PWIZ_API_DECL std::string | pwiz::util::read_file_header (const std::string &filepath, size_t length=512) |
|
PWIZ_API_DECL std::pair< int, int > | pwiz::util::get_console_bounds (const std::pair< int, int > &defaultBounds=std::pair< int, int >(80, 24)) |
| attempts to get the platform-specific console bounds (number of columns and lines), returns defaultBounds if an error occurs or the platform is not supported
|
|