1 #ifndef LIBFILEZILLA_LOCAL_FILESYS_HEADER 2 #define LIBFILEZILLA_LOCAL_FILESYS_HEADER 8 #include "private/windows.hpp" 49 return c ==
'/' || c ==
'\\';
58 static type get_file_type(
native_string const& path,
bool follow_links =
false);
62 static type get_file_info(
native_string const& path,
bool &is_link, int64_t* size,
datetime* modification_time,
int* mode);
65 static int64_t get_size(
native_string const& path,
bool *is_link =
nullptr);
70 bool begin_find_files(
native_string path,
bool dirs_only =
false);
78 bool get_next_file(
native_string& name,
bool &is_link,
bool &is_dir, int64_t* size,
datetime* modification_time,
int* mode);
81 void end_find_files();
91 void alloc_path_buffer(
char const* filename);
98 WIN32_FIND_DATA m_find_data{};
99 HANDLE m_hFind{INVALID_HANDLE_VALUE};
105 int m_buffer_length{};
Represents a point of time in wallclock, tracking the timestamps accuracy/precision.
Definition: time.hpp:40
Assorted classes dealing with time.
static char const path_separator
The system's preferred path separator.
Definition: local_filesys.hpp:42
This class can be used to enumerate the contents of local directories and to query the metadata of fi...
Definition: local_filesys.hpp:24
std::wstring native_string
A string in the system's native character type and encoding. Note: This typedef changes depending on...
Definition: string.hpp:32
The namespace used by libfilezilla.
Definition: apply.hpp:16
Lean class for file access.
Definition: file.hpp:25
static bool is_separator(wchar_t c)
Checks whether given character is a path separator.
Definition: local_filesys.hpp:47
Sets some global macros and further includes string.hpp.
type
Types of files. While 'everything is a file', a filename can refer to a file proper, a directory or a symbolic link.
Definition: local_filesys.hpp:34