 |
libfilezilla
|
Go to the documentation of this file. 1 #ifndef LIBFILEZILLA_LOCAL_FILESYS_HEADER
2 #define LIBFILEZILLA_LOCAL_FILESYS_HEADER
8 #include "private/windows.hpp"
43 explicit operator bool()
const {
return error_ == 0; }
79 return c ==
'/' || c ==
'\\';
88 static type get_file_type(
native_string const& path,
bool follow_links =
false);
98 static type get_file_info(
native_string const& path,
bool &is_link, int64_t* size,
datetime* modification_time,
int* mode,
bool follow_links =
true);
101 static int64_t get_size(
native_string const& path,
bool *is_link =
nullptr);
120 bool get_next_file(
native_string& name,
bool &is_link, type & t, int64_t* size,
datetime* modification_time,
int* mode);
123 void end_find_files();
134 WIN32_FIND_DATA m_find_data{};
135 HANDLE m_hFind{INVALID_HANDLE_VALUE};
164 result FZ_PUBLIC_SYMBOL
mkdir(
native_string const& absolute_path,
bool recurse,
bool current_user_only =
false,
native_string * last_created =
nullptr);
type
Types of files. While 'everything is a file', a filename can refer to a file proper,...
Definition: local_filesys.hpp:64
Lean class for file access.
Definition: file.hpp:25
result mkdir(native_string const &absolute_path, bool recurse, bool current_user_only=false, native_string *last_created=nullptr)
Creates directory if it doesn't yet exist.
@ nodir
Requested dir does not exist or is not a dir.
Definition: local_filesys.hpp:34
@ nospace
Out of disk space.
Definition: local_filesys.hpp:37
@ nofile
Requested file does not exist or is not a file.
Definition: local_filesys.hpp:31
static const char path_separator
The system's preferred path separator.
Definition: local_filesys.hpp:72
std::wstring native_string
A string in the system's native character type and encoding. Note: This typedef changes depending on...
Definition: string.hpp:33
Small class to return filesystem errors.
Definition: local_filesys.hpp:21
error
Definition: local_filesys.hpp:24
Assorted classes dealing with time.
@ noperm
Permission denied.
Definition: local_filesys.hpp:28
Sets some global macros and further includes string.hpp.
static bool is_separator(wchar_t c)
Checks whether given character is a path separator.
Definition: local_filesys.hpp:77
This class can be used to enumerate the contents of local directories and to query the metadata of fi...
Definition: local_filesys.hpp:54
Represents a point of time in wallclock, tracking the timestamps accuracy/precision.
Definition: time.hpp:40
The namespace used by libfilezilla.
Definition: apply.hpp:17