digitalmars.D.learn - Set file times
- sleek (6/6) Aug 12 2008 I'm trying to set (at the very least) the modified time of a file on my ...
- Wyverex (5/14) Aug 12 2008 windows and posix will be different but for windows try looking at
- Wyverex (3/19) Aug 12 2008 Almost forgot on linux try stat
- Wyverex (6/15) Aug 12 2008 HAHA i guess stat is in phobos
- Lars Ivar Igesund (8/24) Aug 13 2008 stat is available in Tango too, but he requested a method to do it via t...
I'm trying to set (at the very least) the modified time of a file on my file system. Right now, I need to do this in Windows, but I can imagine the need in other OS's later on. I know there is not a way to do this in Tango right now, and I have submitted a request for inclusion. However, is there another D library out there that might actually allow me to do this?
Aug 12 2008
sleek wrote:I'm trying to set (at the very least) the modified time of a file on my file system. Right now, I need to do this in Windows, but I can imagine the need in other OS's later on. I know there is not a way to do this in Tango right now, and I have submitted a request for inclusion. However, is there another D library out there that might actually allow me to do this?windows and posix will be different but for windows try looking at SetFileTime http://msdn.microsoft.com/en-us/library/ms724933(VS.85).aspx if is not in tango try the bindings project...
Aug 12 2008
Wyverex wrote:sleek wrote:Almost forgot on linux try stat http://linux.die.net/man/2/statI'm trying to set (at the very least) the modified time of a file on my file system. Right now, I need to do this in Windows, but I can imagine the need in other OS's later on. I know there is not a way to do this in Tango right now, and I have submitted a request for inclusion. However, is there another D library out there that might actually allow me to do this?windows and posix will be different but for windows try looking at SetFileTime http://msdn.microsoft.com/en-us/library/ms724933(VS.85).aspx if is not in tango try the bindings project...
Aug 12 2008
sleek wrote:I'm trying to set (at the very least) the modified time of a file on my file system. Right now, I need to do this in Windows, but I can imagine the need in other OS's later on. I know there is not a way to do this in Tango right now, and I have submitted a request for inclusion. However, is there another D library out there that might actually allow me to do this?HAHA i guess stat is in phobos version(Windows) import std.c.windows.stat; else import std.c.linux.linux;
Aug 12 2008
Wyverex wrote:sleek wrote:stat is available in Tango too, but he requested a method to do it via the FilePath interface. -- Lars Ivar Igesund blog at http://larsivi.net DSource, #d.tango & #D: larsivi Dancing the TangoI'm trying to set (at the very least) the modified time of a file on my file system. Right now, I need to do this in Windows, but I can imagine the need in other OS's later on. I know there is not a way to do this in Tango right now, and I have submitted a request for inclusion. However, is there another D library out there that might actually allow me to do this?HAHA i guess stat is in phobos version(Windows) import std.c.windows.stat; else import std.c.linux.linux;
Aug 13 2008