Back to product page

Permissions property


Holds file or directory permissions.

Type

A String value

Syntax

  • Basic
object.Permissions [= value]
The Permissions(object,value) syntax has these parts:
objectAn expression evaluating to an object of type DirItem.
valueA String value.

Remarks

Most servers you connect to will provide you with information about file/folder access permissions. Usually UNIX servers will provide them (sometimes Windows servers too) in a format like this: 'drwxr-xr-w' and wodFtpDLX will not try to parse this information. It is also possible, on some servers, that you get permissions shown as number - in which case it is dependant on that server.

Above permission sample means the following:

d - item is a directory
r - item is owner readable
w - item is owner writable
x - item is owner executable (in case of folder, means owner can step into the folder)
r - item is group readable
- - item is NOT group writable
x - item is group executable
r - item is readable for others
- - item is NOT writable for others
x - item is executable for other

Just a reminder - you must call ListDir to get directory listing, and then access files through Ftp.DirItems property in order for this property to be available!

Platforms

Windows