From 06cc6d02cae74ce9fd2f60a78538ae66f5119b57 Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Tue, 2 Oct 2012 12:20:07 -0400 Subject: [PATCH] added logging if cannot create directory. --- nucleus/library/filesystem/heavy_file_ops.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nucleus/library/filesystem/heavy_file_ops.cpp b/nucleus/library/filesystem/heavy_file_ops.cpp index 6c4765e9..0900b432 100644 --- 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"); -- 2.34.1