[Issue 7819] New: std.file.setTimes throws error on folders
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Apr 4 05:41:54 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7819
Summary: std.file.setTimes throws error on folders
Product: D
Version: D2
Platform: x86
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
Component: Phobos
AssignedTo: nobody at puremagic.com
ReportedBy: jayn at prismnet.com
--- Comment #0 from Jay Norwood <jayn at prismnet.com> 2012-04-04 05:42:30 PDT ---
std.file.setTimes threw an error on folder names while it worked ok on regular
files. Not sure if it is an error since there is no documentation that it
shouldn't work for folders. Should it work, or what is the alternative?
In the lines below, am.time was from std.zip archive entry.
tz was from localTime().
fullPathname is a full path to a windows directory name.
SysTime st = DosFileTimeToSysTime(am.time, tz);
std.file.setTimes(fullPathname, st, st);
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list