rcutils
master
C API providing common utilities and data structures.
|
Go to the documentation of this file.
15 #ifndef RCUTILS__FILESYSTEM_H_
16 #define RCUTILS__FILESYSTEM_H_
125 const char * left_hand_path,
126 const char * right_hand_path,
194 #endif // RCUTILS__FILESYSTEM_H_
bool rcutils_is_file(const char *abs_path)
Check if the provided path points to a file.
bool rcutils_mkdir(const char *abs_path)
Create the specified directory.
bool rcutils_is_readable(const char *abs_path)
Check if the provided path points to a file/folder readable by current user.
bool rcutils_is_directory(const char *abs_path)
Check if the provided path points to a directory.
size_t rcutils_get_file_size(const char *file_path)
Calculate the size of the specifed file.
bool rcutils_get_cwd(char *buffer, size_t max_length)
Return current working directory.
#define RCUTILS_WARN_UNUSED
Definition: macros.h:24
bool rcutils_is_writable(const char *abs_path)
Check if the provided path points to a file/folder writable by current user.
bool rcutils_exists(const char *abs_path)
Check if the provided path points to an existing file/folder.
char * rcutils_to_native_path(const char *path, rcutils_allocator_t allocator)
Return newly allocated string with all argument's "/" replaced by platform specific separator.
Encapsulation of an allocator.
Definition: allocator.h:45
#define RCUTILS_PUBLIC
Definition: visibility_control.h:23
char * rcutils_join_path(const char *left_hand_path, const char *right_hand_path, rcutils_allocator_t allocator)
Return newly allocated string with arguments separated by correct delimiter for the platform.
size_t rcutils_calculate_directory_size(const char *directory_path, rcutils_allocator_t allocator)
Calculate the size of the specified directory.
bool rcutils_is_readable_and_writable(const char *abs_path)
Check if the provided path points to a file/folder both readable and writable by current user.