vibe.d beta banner
get vibe.d
0.10.1

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

getFileInfo - multiple declarations

Function getFileInfo

Stores information about the specified file/directory into 'info'

FileInfo getFileInfo (
  GenericPath!(vibe.core.path.PosixPathFormat) path
) @trusted;

FileInfo getFileInfo (
  string path
) @safe;

Throws

A FileException is thrown if the file does not exist.

Function getFileInfo

Returns file information about multiple files at once.

TaggedUnion!(vibe.core.file.FileInfoResultFields)[] getFileInfo (
  const(GenericPath!(vibe.core.path.PosixPathFormat))[] paths
) nothrow @safe;

This version of getFileInfo is more efficient than many individual calls to the singular version.

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.