FtpFile

Represents a file over a FTP file system.

Constructors

this
this(const(char)[] server, const(char)[] path, const(char)[] username, const(char)[] password, uint port)
Undocumented in source.

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
string toString()

Return a long name

Properties

atime
Time.Time atime [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
ctime
Time.Time ctime [@property getter]

Time created

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.Time modified [@property getter]

Modified time of the file

mtime
Time.Time mtime [@property getter]

Time modified

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

Variables

conOpen
bool conOpen;
Undocumented in source.
conn
FTPConnection conn;
name_
const(char)[] name_;
password_
const(char)[] password_;
Undocumented in source.
port_
uint port_;
Undocumented in source.
toString_
const(char)[] toString_;
username_
const(char)[] username_;
Undocumented in source.

Inherited Members

From VfsFile

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

Return a short name

toString
immutable(char)[] toString()

Return a long name

exists
bool exists [@property getter]

Does this file exist?

size
ulong size [@property getter]

Return the file size

copy
VfsFile copy(VfsFile source)

Create and copy the given source

move
VfsFile move(VfsFile source)

Create and copy the given source, and remove the source

create
VfsFile create()

Create a new file instance

create
VfsFile create(InputStream stream)

Create a new file instance and populate with stream

remove
VfsFile remove()

Remove this file

input
InputStream input [@property getter]

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

output
OutputStream output [@property getter]

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

dup
VfsFile dup [@property getter]

Duplicate this entry

modified
Time modified [@property getter]

The modified time of the folder

Meta