~ubuntu-branches/ubuntu/natty/haxe/natty

« back to all changes in this revision

Viewing changes to haxe/std/cpp/FileSystem.hx

  • Committer: Bazaar Package Importer
  • Author(s): Jens Peter Secher
  • Date: 2010-01-31 23:08:43 UTC
  • mfrom: (5.2.4 sid)
  • Revision ID: james.westby@ubuntu.com-20100131230843-1cxte2x20ypk9c25
Tags: 1:2.5-1
New upstream version, taken from new upstream subversion repository.

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
 
57
57
        public static function stat( path : String ) : FileStat {
58
58
                var s : FileStat = sys_stat(path);
 
59
                if (s==null)
 
60
                        return { gid:0, uid:0, atime:Date.fromTime(0), mtime:Date.fromTime(0), ctime:Date.fromTime(0), dev:0, ino:0, nlink:0, rdev:0, size:0, mode:0 };
59
61
                s.atime = Date.fromTime(1000.0*(untyped s.atime));
60
62
                s.mtime = Date.fromTime(1000.0*(untyped s.mtime));
61
63
                s.ctime = Date.fromTime(1000.0*(untyped s.ctime));