projects
/
feisty_meow.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
28f75b2
)
added logging if cannot create directory.
author
Chris Koeritz
<fred@gruntose.com>
Tue, 2 Oct 2012 16:20:07 +0000
(12:20 -0400)
committer
Chris Koeritz
<fred@gruntose.com>
Tue, 2 Oct 2012 16:20:07 +0000
(12:20 -0400)
nucleus/library/filesystem/heavy_file_ops.cpp
patch
|
blob
|
history
diff --git
a/nucleus/library/filesystem/heavy_file_ops.cpp
b/nucleus/library/filesystem/heavy_file_ops.cpp
index 6c4765e9243fb83c88773f1e8cdd8c50ee8ba6dd..0900b4328b9b52d5f4129b0d0158597d59421430 100644
(file)
--- a/
nucleus/library/filesystem/heavy_file_ops.cpp
+++ b/
nucleus/library/filesystem/heavy_file_ops.cpp
@@
-176,8
+176,10
@@
outcome heavy_file_operations::write_file_chunk(const astring &target,
if (byte_start < 0) return BAD_INPUT;
filename targ_name(target);
- if (!directory::recursive_create(targ_name.dirname().raw()))
+ if (!directory::recursive_create(targ_name.dirname().raw())) {
+ LOG(astring("failed to create directory: ") + targ_name.dirname().raw());
return TARGET_DIR_ERROR;
+ }
if (!targ_name.exists()) {
huge_file target_file(target, "w");