vibe.d beta banner
get vibe.d
0.10.1

Asynchronous I/O that doesn’t get in your way, written in D

Struct FileInfo

Contains general information about a file.

struct FileInfo ;

Fields

NameTypeDescription
directory GenericPath!(vibe.core.path.PosixPathFormat)The directory containing the file
hidden boolTrue if the file's hidden attribute is set.
isDirectory boolTrue if this is a directory or a symlink pointing to a directory
isFile boolTrue if this is a file. On POSIX if both isFile and isDirectory are false it is a special file.
isSymlink boolTrue if this is a symlink to an actual file
name stringName of the file (not including the path)
size ulongSize of the file (zero for directories)
timeCreated std.datetime.systime.SysTimeTime of creation (not available on all operating systems/file systems)
timeModified std.datetime.systime.SysTimeTime of the last modification
Authors

Sönke Ludwig

Copyright

© 2012-2021 Sönke Ludwig

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.