|
Blender V5.3
|
#include <algorithm>#include <cstdlib>#include <cstring>#include <fcntl.h>#include <sys/stat.h>#include <sys/types.h>#include <cerrno>#include <zlib.h>#include <zstd.h>#include <dirent.h>#include <sys/param.h>#include <sys/wait.h>#include <unistd.h>#include "MEM_guardedalloc.h"#include "BLI_fileops.hh"#include "BLI_path_utils.hh"#include "BLI_string.hh"#include "BLI_sys_types.hh"#include "BLI_utildefines.hh"Go to the source code of this file.
Classes | |
| struct | blender::StrBuf |
Namespaces | |
| namespace | blender |
| BMesh Iterators. | |
Macros | |
| #define | FILE_MAX_STATIC_BUF 256 |
Typedefs | |
| using | blender::RecursiveOp_Callback = int (*)(const char *from, const char *to) |
Enumerations | |
| enum | { blender::RecursiveOp_Callback_OK = 0 , blender::RecursiveOp_Callback_StopRecurs = 1 , blender::RecursiveOp_Callback_Error = 2 } |
Functions | |
| static bool | blender::dir_create_recursive (const char *dirname, const int len) |
| static bool | blender::path_has_trailing_slash (const char *path) |
| static size_t | blender::path_len_no_trailing_slash (const char *path) |
| static int | blender::recursive_operation_impl (StrBuf *src_buf, StrBuf *dst_buf, RecursiveOp_Callback callback_dir_pre, RecursiveOp_Callback callback_file, RecursiveOp_Callback callback_dir_post) |
| static int | blender::recursive_operation (const char *path_src, const char *path_dst, RecursiveOp_Callback callback_dir_pre, RecursiveOp_Callback callback_file, RecursiveOp_Callback callback_dir_post) |
| static int | blender::delete_callback_post (const char *from, const char *) |
| static int | blender::delete_single_file (const char *from, const char *) |
| static bool | blender::check_the_same (const char *path_a, const char *path_b) |
| static int | blender::set_permissions (const char *filepath, const struct stat *st) |
| static int | blender::copy_callback_pre (const char *from, const char *to) |
| static int | blender::copy_single_file (const char *from, const char *to) |
| static int | blender::move_callback_pre (const char *from, const char *to) |
| static int | blender::move_single_file (const char *from, const char *to) |
| static const char * | blender::path_destination_ensure_filename (const char *path_src, const char *path_dst, char *buf, size_t buf_size) |
Files | |
| int64_t | blender::BLI_read (int fd, void *buf, size_t nbytes) |
| size_t | blender::BLI_file_zstd_from_mem_at_pos (void *buf, size_t len, FILE *file, size_t file_offset, int compression_level) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL() |
| size_t | blender::BLI_file_unzstd_to_mem_at_pos (void *buf, size_t len, FILE *file, size_t file_offset) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL() |
| bool | blender::BLI_file_magic_is_gzip (const char header[4]) |
| bool | blender::BLI_file_magic_is_zstd (const char header[4]) |
| bool | blender::BLI_file_is_writable (const char *filepath) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL() |
| bool | blender::BLI_file_touch (const char *filepath) ATTR_NONNULL(1) |
| bool | blender::BLI_file_ensure_parent_dir_exists (const char *filepath) ATTR_NONNULL(1) |
| FILE * | blender::BLI_fopen (const char *filepath, const char *mode) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL() |
| void * | blender::BLI_gzopen (const char *filepath, const char *mode) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL() |
| int | blender::BLI_open (const char *filepath, int oflag, int pmode) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL() |
| int | blender::BLI_access (const char *filepath, int mode) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL() |
External File Operations | |
| bool | blender::BLI_file_external_operation_supported (const char *filepath, FileExternalOperation operation) |
| bool | blender::BLI_file_external_operation_execute (const char *filepath, FileExternalOperation operation) |
Directories | |
| bool | blender::BLI_dir_create_recursive (const char *dirname) ATTR_NONNULL() |
Common | |
| int | blender::BLI_rename (const char *from, const char *to) ATTR_NONNULL() |
| int | blender::BLI_rename_overwrite (const char *from, const char *to) ATTR_NONNULL() |
| int | blender::BLI_delete (const char *path, bool dir, bool recursive) ATTR_NONNULL() |
| int | blender::BLI_delete_soft (const char *filepath, const char **r_error_message) ATTR_NONNULL() |
| int | blender::BLI_path_move (const char *path_src, const char *path_dst) ATTR_NONNULL() |
| int | blender::BLI_copy (const char *path_src, const char *path_dst) ATTR_NONNULL() |
Simple String Buffer | |
| static void | blender::strbuf_init (StrBuf *buf, const char *str, size_t str_len, size_t str_len_alloc) |
| static void | blender::strbuf_free (StrBuf *buf) |
| static void | blender::strbuf_append_path (StrBuf *buf, const char *filename) |
| static void | blender::strbuf_trim (StrBuf *buf, size_t len) |
| #define FILE_MAX_STATIC_BUF 256 |
Sizes above this must be allocated.
Definition at line 55 of file fileops_c.cc.
Referenced by blender::BLI_copy().