Page Menu
Home
Search
Configure Global Search
Log In
Files
F22191
fileops_file_is_writable_2.patch
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Authored By
Lawrence D'Oliveiro (ldo)
Nov 13 2013, 4:42 PM
Size
937 B
Subscribers
None
fileops_file_is_writable_2.patch
View Options
commit ee62c588ccc9e1db932ff8f582393ca8e8e0c745
Author: Lawrence D'Oliveiro <ldo@geek-central.gen.nz>
Date: Mon Feb 18 03:27:52 2013 +0000
correct comments for BLI_file_is_writable
diff --git a/source/blender/blenlib/intern/fileops.c b/source/blender/blenlib/intern/fileops.c
index 6968ed2..8743e71 100644
--- a/source/blender/blenlib/intern/fileops.c
+++ b/source/blender/blenlib/intern/fileops.c
@@ -171,12 +171,12 @@ anyway. */
}
else if (errno != ENOENT)
{
- /* most likely file doesn't exist or containing directory cannot be accessed */
+ /* most likely file or containing directory cannot be accessed */
writable = false;
}
else
{
- /* check I can create file in parent directory */
+ /* file doesn't exist--check I can create it in parent directory */
char parent[FILE_MAX];
BLI_split_dirfile(filename, parent, NULL, sizeof parent, 0);
writable = access(parent, X_OK | W_OK) == 0;
File Metadata
Details
Mime Type
text/x-diff
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
e9/a8/3f08815fd0c8971ce4e94f6b35e3
Event Timeline
Log In to Comment