Skip to main content

FTPFile

Os dados referente a um ficheiro FTP.


getGroup


getGroup() : string

Description

Returns the name of the group owning the file.

Return

( string )

The name of the group owning the file.


getHardLinkCount


getHardLinkCount() : int

Description

Returns the number of hard links to this file.

Return

( int )

The number of hard links to this file.



Description

If the FTPFile is a symbolic link, this method returns the name of the file being pointed to by the symbolic link. Otherwise it returns null.

Return

( string )

The file pointed to by the symbolic link (null if the FTPFile is not a symbolic link).


getName


getName() : string

Description

Returns the name of the file.

Return

( string )

The name of the file.


getRawListing


getRawListing() : string

Description

Returns the original FTP server raw listing used to initialize the FTPFile.

Return

( string )

The original FTP server raw listing used to initialize the FTPFile.


getSize


getSize() : long

Description

Returns the file size in bytes.

Return

( long )

The file size in bytes.


getTimestamp


getTimestamp() : java.util.Calendar

Description

Returns the file timestamp. This usually the last modification time.

Return

( java.util.Calendar )

A Calendar instance representing the file timestamp.


getTimestampInstant


getTimestampInstant() : java.time.Instant

Description

Returns the file timestamp. This usually the last modification time.

Return

( java.time.Instant )

A Calendar instance representing the file timestamp.


getUser


getUser() : string

Description

Returns the name of the user owning the file. Sometimes this will be a string representation of the user number.

Return

( string )

The name of the user owning the file.


isDirectory


isDirectory() : boolean

Description

Returns whether it is a directory.

Return

( boolean )

Whether or not it is a directory.


isFile


isFile() : boolean

Description

Returns whether it is a file.

Return

( boolean )

Whether or not it is a file.


isGroupExecutable


isGroupExecutable() : boolean

Description

Returns whether a group has file execute permission or directory listing permission.

Return

( boolean )

Whether or not it has permission.


isGroupReadable


isGroupReadable() : boolean

Description

Returns whether a group has read permissions.

Return

( boolean )

Whether or not it has permission.


isGroupWritable


isGroupWritable() : boolean

Description

Returns whether a group has write permissions.

Return

( boolean )

Whether or not it has permission.



Description

Returns whether it is a symbolic link.

Return

( boolean )

Whether or not it is a symbolic link.


isUnknown


isUnknown() : boolean

Description

Returns whether it is a unknown type.

Return

( boolean )

Whether or not it is a unknown type.


isUserExecutable


isUserExecutable() : boolean

Description

Returns whether the user has file execute permission or directory listing permission.

Return

( boolean )

Whether or not it has permission.


isUserReadable


isUserReadable() : boolean

Description

Returns whether the user has read permissions

Return

( boolean )

Whether or not it has read permission.


isUserWritable


isUserWritable() : boolean

Description

Returns whether the user has write permissions

Return

( boolean )

Whether or not it has write permission.


isValid


isValid() : boolean

Description

Returns whether an entry is valid.

Return

( boolean )

Whether an entry is valid or not.


isWorldExecutable


isWorldExecutable() : boolean

Description

Returns whether you have global file execute permission or directory listing permission.

Return

( boolean )

Whether or not it has permission.


isWorldReadable


isWorldReadable() : boolean

Description

Returns whether it has global read permission.

Return

( boolean )

Whether or not it has permission.


isWorldWritable


isWorldWritable() : boolean

Description

Returns whether it has global write permission.

Return

( boolean )

Whether or not it has permission.


setGroup


setGroup(group: string) : FTPFile

Description

Defines the name of the group owning the file

Attributes
NAMETYPEDESCRIPTION
groupstringThe name of the group owning the file.
Return

( FTPFile )

The current FTPFile object.


setGroupExecutable


setGroupExecutable(access: boolean) : FTPFile

Description

Defines file execute permission or directory listing permission for a group.

Attributes
NAMETYPEDESCRIPTION
accessbooleanWhether or not it has permission.
Return

( FTPFile )

The current FTPFile object.


setGroupReadable


setGroupReadable(access: boolean) : FTPFile

Description

Defines read permission for a group.

Attributes
NAMETYPEDESCRIPTION
accessbooleanWhether or not it has permission.
Return

( FTPFile )

The current FTPFile object.


setGroupWritable


setGroupWritable(access: boolean) : FTPFile

Description

Defines write permission for a group.

Attributes
NAMETYPEDESCRIPTION
accessbooleanWhether or not it has permission.
Return

( FTPFile )

The current FTPFile object.


setHardLinkCount


Description

Defines the number of hard links to this file.

Attributes
NAMETYPEDESCRIPTION
linksintThe number of hard links to this file.
Return

( FTPFile )

The current FTPFile object.



Description

If the FTPFile is a symbolic link, use this method to defines the name of the file being pointed to by the symbolic link.

Attributes
NAMETYPEDESCRIPTION
linkstringThe file pointed to by the symbolic link.
Return

( FTPFile )

The current FTPFile object.


setName


setName(name: string) : FTPFile

Description

Defines the name of the file.

Attributes
NAMETYPEDESCRIPTION
namestringThe name of the file.
Return

( FTPFile )

The current FTPFile object.


setRawListing


setRawListing(rawListing: string) : FTPFile

Description

Defines the original FTP server raw listing from which the FTPFile was created.

Attributes
NAMETYPEDESCRIPTION
rawListingstringThe raw FTP server listing.
Return

( FTPFile )

The current FTPFile object.


setSize


setSize(size: long) : FTPFile

Description

Defines the file size in bytes.

Attributes
NAMETYPEDESCRIPTION
sizelongThe file size in bytes.
Return

( FTPFile )

The current FTPFile object.


setTimestamp


setTimestamp(date: java.util.Calendar) : FTPFile

Description

Defines the file timestamp. This usually the last modification time. The parameter is not cloned, so do not alter its value after calling this method.

Attributes
NAMETYPEDESCRIPTION
datejava.util.CalendarA Calendar instance representing the file timestamp.
Return

( FTPFile )

The current FTPFile object.


setUser


setUser(user: string) : FTPFile

Description

Defines the name of the user owning the file. This may be a string representation of the user number.

Attributes
NAMETYPEDESCRIPTION
userstringThe name of the user owning the file.
Return

( FTPFile )

The current FTPFile object.


setUserExecutable


setUserExecutable(access: boolean) : FTPFile

Description

Defines file execute permission or directory listing permission for a user.

Attributes
NAMETYPEDESCRIPTION
accessbooleanWhether or not it has permission.
Return

( FTPFile )

The current FTPFile object.


setUserReadable


setUserReadable(access: boolean) : FTPFile

Description

Defines read permission for a user.

Attributes
NAMETYPEDESCRIPTION
accessbooleanWhether or not it has read permission.
Return

( FTPFile )

The current FTPFile object.


setUserWritable


setUserWritable(access: boolean) : FTPFile

Description

Defines write permission for a user.

Attributes
NAMETYPEDESCRIPTION
accessbooleanWhether or not it has write permission.
Return

( FTPFile )

The current FTPFile object.


setWorldExecutable


setWorldExecutable(access: boolean) : FTPFile

Description

Defines global file execution permission or directory listing permission.

Attributes
NAMETYPEDESCRIPTION
accessbooleanWhether or not it has permission.
Return

( FTPFile )

The current FTPFile object.


setWorldReadable


setWorldReadable(access: boolean) : FTPFile

Description

Defines global read permission.

Attributes
NAMETYPEDESCRIPTION
accessbooleanWhether or not it has permission.
Return

( FTPFile )

The current FTPFile object.


setWorldWritable


setWorldWritable(access: boolean) : FTPFile

Description

Defines global write permission.

Attributes
NAMETYPEDESCRIPTION
accessbooleanWhether or not it has permission.
Return

( FTPFile )

The current FTPFile object.


toDirectory


toDirectory() : FTPFile

Description

indicates that the current object is a directory.

Return

( FTPFile )

The current FTPFile object.


toFile


toFile() : FTPFile

Description

indicates that the current object is a file.

Return

( FTPFile )

The current FTPFile object.


toFormattedString


toFormattedString() : string

Description

Returns a string representation of the FTPFile information.

Return

( string )

String representation of FTPFile information.


toFormattedString(timezone: string) : string

Description

Returns a string representation of the FTPFile information.

Attributes
NAMETYPEDESCRIPTION
timezonestringTime zone to use to display the date and time moment.
Return

( string )

String representation of FTPFile information.



Description

indicates that the current object is a symbolic link.

Return

( FTPFile )

The current FTPFile object.


toUnknown


toUnknown() : FTPFile

Description

indicates that the current object is a unknown type.

Return

( FTPFile )

The current FTPFile object.