diff options
author | Brecht Van Lommel <brecht@blender.org> | 2020-03-26 19:52:41 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2020-03-26 21:57:30 +0300 |
commit | afb1a64ccb81b7ed792f64151986f40f53af8da5 (patch) | |
tree | d7dfdb1f1b8d6dda67c91ea813e09fdbb826b335 /source/blender/editors/space_file/file_ops.c | |
parent | d1972e50cbef6e2a40ffc259f10e08493511dc66 (diff) |
Fix T60682: adds macOS alias redirection for directories
This adds support for macOS aliases in addition to symlinks. It also adds
support for hidden, readonly and system file attributes.
Contributed by Ankit (ankitm) with modifications by me.
Differential Revision: https://developer.blender.org/D6679
Diffstat (limited to 'source/blender/editors/space_file/file_ops.c')
-rw-r--r-- | source/blender/editors/space_file/file_ops.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/space_file/file_ops.c b/source/blender/editors/space_file/file_ops.c index a34fcba99be..5258892d55d 100644 --- a/source/blender/editors/space_file/file_ops.c +++ b/source/blender/editors/space_file/file_ops.c @@ -1634,7 +1634,9 @@ static int file_exec(bContext *C, wmOperator *exec_op) BLI_path_append(sfile->params->dir, sizeof(sfile->params->dir) - 1, file->relpath); BLI_add_slash(sfile->params->dir); } - + if (file->redirection_path) { + STRNCPY(sfile->params->dir, file->redirection_path); + } ED_file_change_dir(C); } /* opening file - sends events now, so things get handled on windowqueue level */ |