git://scientific.zcu.cz
/
dmlite-clients.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
86118c2
)
Set file size.
author
František Dvořák
<valtri@civ.zcu.cz>
Tue, 15 Oct 2013 18:16:09 +0000
(20:16 +0200)
committer
František Dvořák
<valtri@civ.zcu.cz>
Tue, 15 Oct 2013 18:16:09 +0000
(20:16 +0200)
walk.cpp
patch
|
blob
|
blame
|
history
diff --git
a/walk.cpp
b/walk.cpp
index
a494efd
..
15596cd
100644
(file)
--- a/
walk.cpp
+++ b/
walk.cpp
@@
-45,7
+45,7
@@
static void walk_recursive(const char *path) throw(dmlite::DmException) {
utimbuf.actime = pathstat.st_atime;
utimbuf.modtime = pathstat.st_mtime;
catalog->utime(nsPrefix + path, &utimbuf);
-
//catalog->setSize(path,
stat.st_size);
+
catalog->setSize(nsPrefix + path, path
stat.st_size);
} else if (S_ISDIR(pathstat.st_mode)) {
// create under permissive modes
if (path[0]) catalog->makeDir(nsPrefix + path, 0775);