LibPkg
Namespaces | Functions
filesystem.cc File Reference
#include "libpkg/os/os.h"
#include "libpkg/filesystem.h"
#include <iostream>

Namespaces

 pkg
 The namespace used to hold the package management library.
 

Functions

string pkg::canonicalise (const string &pathname)
 Canonicalise pathname. More...
 
void pkg::force_delete (const string &pathname)
 Delete file without regard for file attributes. More...
 
void pkg::soft_delete (const string &pathname)
 Delete file without changing file attributes It is not an error if the file does not exist. More...
 
void pkg::force_move (const string &src_pathname, const string &dst_pathname, bool overwrite=false)
 Move file without regard for file attributes. More...
 
void pkg::copy_object (const string &src_pathname, const string &dst_pathname)
 Recursively copy object. More...
 
void pkg::create_directory (const string &pathname)
 Create directory. More...
 
void pkg::write_file_info (const string &pathname, unsigned int loadaddr, unsigned int execaddr, unsigned int attr)
 Write file information. More...
 
void pkg::write_filetype (const string &pathname, unsigned int filetype)
 Write filetype. More...
 
unsigned int pkg::object_type (const string &pathname)
 Get object type. More...
 
unsigned int pkg::object_length (const string &pathname)
 Get object length. More...
 
std::string pkg::boot_drive_relative (const string &pathname)
 Get version of pathname made relative the the boot drive. More...
 

Reference Manual LibPkg Version 0.9.0 (4 Sep 2020)