projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
af3ffc8
)
possible fix for invalid cleanup space calc on win32.
author
Robin Gareus
<robin@gareus.org>
Tue, 20 Oct 2015 13:08:50 +0000
(15:08 +0200)
committer
Robin Gareus
<robin@gareus.org>
Tue, 20 Oct 2015 13:50:00 +0000
(15:50 +0200)
libs/pbd/file_utils.cc
patch
|
blob
|
history
diff --git
a/libs/pbd/file_utils.cc
b/libs/pbd/file_utils.cc
index 4279688157ee5d173bfaf357cfb4ea6a087dd1d2..6cf43f3fd2bfd3324895151c4b8bc4a274246b4d 100644
(file)
--- a/
libs/pbd/file_utils.cc
+++ b/
libs/pbd/file_utils.cc
@@
-450,13
+450,15
@@
remove_directory_internal (const string& dir, size_t* size, vector<string>* path
error << string_compose (_("cannot remove path %1 (%2)"), *i, strerror (errno))
<< endmsg;
ret = 1;
+ continue;
}
if (paths) {
paths->push_back (Glib::path_get_basename(*i));
}
- if (size) {
+ // statbuf.st_size is off_t
+ if (size && statbuf.st_size > 0) {
*size += statbuf.st_size;
}