rejetto forum
Software => HFS ~ HTTP File Server => Programmers corner => Topic started by: Mars on February 02, 2010, 10:41:12 PM
-
was missing when inserting files from disk to the listing:
f.size:=0;
if f.isFile() then
f.size:=sr.FindData.nFileSizeLow
+int64(sr.FindData.nFileSizeHigh) shl 32;
f.mtime:=filetimeToDatetime(sr.FindData.ftLastWriteTime);
f.accounts:=folder.accounts; //add by mars
addToListing(f);
until (findNext(sr) <> 0) or (conn.state = HCS_DISCONNECTED) or (limit >= 0) and (actualCount >= limit);
finally findClose(sr) end;
finally comments.free end
end; // includeFilesFromDisk
-
mmmmmmmmmm
how did you come to this?
did you face any problem?