From: František Dvořák Date: Tue, 15 Oct 2013 18:16:09 +0000 (+0200) Subject: Set file size. X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=f7e835834f49aaedfa9e60c3883d2698bb35d549;p=dmlite-clients.git Set file size. --- diff --git a/walk.cpp b/walk.cpp index a494efd..15596cd 100644 --- 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, pathstat.st_size); } else if (S_ISDIR(pathstat.st_mode)) { // create under permissive modes if (path[0]) catalog->makeDir(nsPrefix + path, 0775);