VfsFile

A specific file representation

Members

Functions

copy
VfsFile copy(VfsFile source)

Create and copy the given source

create
VfsFile create()

Create a new file instance

create
VfsFile create(InputStream stream)

Create a new file instance and populate with stream

move
VfsFile move(VfsFile source)

Create and copy the given source, and remove the source

remove
VfsFile remove()

Remove this file

toString
immutable(char)[] toString()

Return a long name

Properties

dup
VfsFile dup [@property getter]

Duplicate this entry

exists
bool exists [@property getter]

Does this file exist?

input
InputStream input [@property getter]

Return the input stream. Don't forget to close it

modified
Time modified [@property getter]

The modified time of the folder

name
const(char)[] name [@property getter]

Return a short name

output
OutputStream output [@property getter]

Return the output stream. Don't forget to close it

size
ulong size [@property getter]

Return the file size

Meta