Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenlib/BLI_fileops.h
| Show First 20 Lines • Show All 85 Lines • ▼ Show 20 Lines | |||||
| bool BLI_is_dir(const char *path) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(); | bool BLI_is_dir(const char *path) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(); | ||||
| bool BLI_is_file(const char *path) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(); | bool BLI_is_file(const char *path) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(); | ||||
| void BLI_dir_create_recursive(const char *dir) ATTR_NONNULL(); | void BLI_dir_create_recursive(const char *dir) ATTR_NONNULL(); | ||||
| double BLI_dir_free_space(const char *dir) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(); | double BLI_dir_free_space(const char *dir) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(); | ||||
| char *BLI_current_working_dir(char *dir, const size_t maxlen) ATTR_NONNULL(); | char *BLI_current_working_dir(char *dir, const size_t maxlen) ATTR_NONNULL(); | ||||
| /* Filelist */ | /* Filelist */ | ||||
| unsigned int BLI_filelist_dir_contents(const char *dir, struct direntry **filelist); | unsigned int BLI_filelist_dir_contents(const char *dir, struct direntry **r_filelist); | ||||
| void BLI_filelist_entry_duplicate(struct direntry *dst, const struct direntry *src); | |||||
| void BLI_filelist_duplicate( | void BLI_filelist_duplicate( | ||||
| struct direntry **dest_filelist, struct direntry *src_filelist, unsigned int nrentries, | struct direntry **dest_filelist, struct direntry * const src_filelist, const unsigned int nrentries); | ||||
| void *(*dup_poin)(void *)); | void BLI_filelist_entry_free(struct direntry *entry); | ||||
| void BLI_filelist_free(struct direntry *filelist, unsigned int nrentries, void (*free_poin)(void *)); | void BLI_filelist_free(struct direntry *filelist, const unsigned int nrentries); | ||||
| void BLI_filelist_entry_size_to_string(const struct stat *st, const uint64_t sz, const bool compact, char r_size[]); | |||||
| void BLI_filelist_entry_mode_to_string( | |||||
| const struct stat *st, const bool compact, char r_mode1[], char r_mode2[], char r_mode3[]); | |||||
| void BLI_filelist_entry_owner_to_string(const struct stat *st, const bool compact, char r_owner[]); | |||||
| void BLI_filelist_entry_datetime_to_string( | |||||
| const struct stat *st, const int64_t ts, const bool compact, char r_time[], char r_date[]); | |||||
campbellbarton: input values can be `const`. | |||||
| /* Files */ | /* Files */ | ||||
| FILE *BLI_fopen(const char *filename, const char *mode) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(); | FILE *BLI_fopen(const char *filename, const char *mode) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(); | ||||
| void *BLI_gzopen(const char *filename, const char *mode) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(); | void *BLI_gzopen(const char *filename, const char *mode) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(); | ||||
| int BLI_open(const char *filename, int oflag, int pmode) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(); | int BLI_open(const char *filename, int oflag, int pmode) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(); | ||||
| int BLI_access(const char *filename, int mode) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(); | int BLI_access(const char *filename, int mode) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(); | ||||
| bool BLI_file_is_writable(const char *file) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(); | bool BLI_file_is_writable(const char *file) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(); | ||||
| Show All 31 Lines | |||||
input values can be const.