6 #ifndef LIBPKG_FILESYSTEM
7 #define LIBPKG_FILESYSTEM
53 bool overwrite=
false);
75 unsigned int execaddr,
unsigned int attr);
unsigned int object_length(const string &pathname)
Get object length.
Definition: filesystem.cc:144
void write_filetype(const string &pathname, unsigned int filetype)
Write filetype.
Definition: filesystem.cc:130
unsigned int object_type(const string &pathname)
Get object type.
Definition: filesystem.cc:136
void copy_object(const string &src_pathname, const string &dst_pathname)
Recursively copy object.
Definition: filesystem.cc:108
std::string boot_drive_relative(const string &pathname)
Get version of pathname made relative the the boot drive.
Definition: filesystem.cc:152
void write_file_info(const string &pathname, unsigned int loadaddr, unsigned int execaddr, unsigned int attr)
Write file information.
Definition: filesystem.cc:121
void force_delete(const string &pathname)
Delete file without regard for file attributes.
Definition: filesystem.cc:29
void force_move(const string &src_pathname, const string &dst_pathname, bool overwrite)
Move file without regard for file attributes.
Definition: filesystem.cc:62
void create_directory(const string &pathname)
Create directory.
Definition: filesystem.cc:115
const char * dst_pathname
Definition: path_table.cc:21
void soft_delete(const string &pathname)
Delete file without changing file attributes It is not an error if the file does not exist...
Definition: filesystem.cc:47
const char * src_pathname
Definition: path_table.cc:20
string canonicalise(const string &pathname)
Canonicalise pathname.
Definition: filesystem.cc:13