Blender
V3.3
|
#import <Foundation/Foundation.h>
#include <string>
#include <sys/xattr.h>
#include "BLI_fileops.h"
#include "BLI_path_util.h"
Go to the source code of this file.
Functions | |
bool | BLI_file_alias_target (const char *filepath, char r_targetpath[FILE_MAXDIR]) |
static bool | find_attribute (const std::string &attributes, const char *search_attribute) |
static bool | test_onedrive_file_is_placeholder (const char *path) |
static bool | test_file_is_offline (const char *path) |
eFileAttributes | BLI_file_attributes (const char *path) |
const char * | BLI_expand_tilde (const char *path_with_tilde) |
Variables | |
static const char * | ONEDRIVE_RECALLONOPEN_ATTRIBUTE = "com.microsoft.OneDrive.RecallOnOpen" |
macOS specific implementations for storage.c.
Definition in file storage_apple.mm.
const char* BLI_expand_tilde | ( | const char * | path_with_tilde | ) |
Definition at line 172 of file storage_apple.mm.
References FILE_MAX.
Referenced by BKE_appdir_folder_home(), and BKE_appdir_font_folder_default().
bool BLI_file_alias_target | ( | const char * | filepath, |
char | r_targetpath[FILE_MAXDIR] | ||
) |
r_targetpath | Buffer for the target path an alias points to. |
Definition at line 26 of file storage_apple.mm.
References error(), FILE_MAXDIR, and options.
eFileAttributes BLI_file_attributes | ( | const char * | path | ) |
Definition at line 119 of file storage_apple.mm.
References ARRAY_SIZE, BLI_path_extension_check(), conv_utf_8_to_16(), error(), FILE_ATTR_ALIAS, FILE_ATTR_ARCHIVE, FILE_ATTR_COMPRESSED, FILE_ATTR_ENCRYPTED, FILE_ATTR_HIDDEN, FILE_ATTR_OFFLINE, FILE_ATTR_READONLY, FILE_ATTR_REPARSE_POINT, FILE_ATTR_SPARSE_FILE, FILE_ATTR_SYSTEM, FILE_ATTR_TEMPORARY, FILE_MAXDIR, ret, test_file_is_offline(), UNUSED_VARS, and void.
Referenced by blender::compositor::DebugInfo::delete_operation_exports(), filelist_readjob_list_dir(), and seq_disk_cache_get_files().
|
static |
Checks if the given string of listxattr() attributes contains a specific attribute.
attributes | a string of null-terminated listxattr() attributes. |
search_attribute | the attribute to search for. |
Definition at line 65 of file storage_apple.mm.
References STREQ.
Referenced by test_onedrive_file_is_placeholder().
|
static |
Checks if the file is marked as offline and not immediately available.
path | the path of the file. |
Definition at line 113 of file storage_apple.mm.
References test_onedrive_file_is_placeholder().
Referenced by BLI_file_attributes().
|
static |
Checks if the file is merely a placeholder for a OneDrive file that hasn't yet been downloaded.
path | the path of the file. |
Definition at line 84 of file storage_apple.mm.
References find_attribute(), ONEDRIVE_RECALLONOPEN_ATTRIBUTE, and size().
Referenced by test_file_is_offline().
|
static |
Definition at line 18 of file storage_apple.mm.
Referenced by test_onedrive_file_is_placeholder().