Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
12.2
12.3
12.4
12.5
13.0
13.1
13.2
13.3
13.4
13.5
Statistic
FMM
Blog
Queries file listing as JSON.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
CURL | 8.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example |
---|---|---|
curl | The CURL session handle. | $curl |
Returns JSON or error.
hasFileName | Whether file name is known. |
hasFiletype | Whether file type is known. |
hasTime | Whether time is known. |
hasPerm | Whether file permissions are known. |
hasUID | Whether UID is known. |
hasGID | Whether GID is known. |
hasSize | Whether file size is known. |
hasHardLinkCount | Whether hard link count is known. |
FileName | The file name. |
FileType | The file type. Usually file, directory or symlink. |
Time | The time as returned from server. |
Perm | The permissions as returned from server. |
User | The user name as returned from server. |
Group | The group name as returned from server. |
Target | The target file path of the symbolic link. |
HardLinks | The number of hard links to this file. |
Size | The file size in bytes. |
UID | The user ID if known. |
GID | The group ID if known. |
Permissions | The file permissions as octal number as text, e.g. 755. |
TimeValue | The unix time stamp. |
Year | The year of the time, if available. |
Month | The month of the time, if available. |
Day | The day of the time, if available. |
Hour | The hour of the time, if available. |
Minute | The minute of the time, if available. |
Second | The second of the time, if available. |
Query file list with wildcard:
Set Variable [ $curl ; Value: MBS("CURL.New") ]
Set Variable [ $r ; Value: MBS( "CURL.SetOptionWildCardMatch"; $curl; 1 ) ]
Set Variable [ $result ; Value: MBS("CURL.SetOptionURL"; $curl; CURL Test::URL & "*" ) ]
Set Variable [ $result ; Value: MBS("CURL.SetOptionPassword"; $curl; CURL Test::Password) ]
Set Variable [ $result ; Value: MBS("CURL.SetOptionUserName"; $curl; CURL Test::Name) ]
Set Variable [ $result ; Value: MBS("CURL.SetOptionVerbose"; $curl; 1) ]
Set Field [ CURL Test::Result ; MBS("CURL.Perform"; $curl) ]
Set Field [ CURL Test::listing ; MBS( "JSON.Colorize"; MBS("CURL.FileInfos"; $curl)) ]
Set Field [ CURL Test::debug ; MBS("CURL.GetDebugMessages"; $curl) ]
Set Variable [ $result ; Value: MBS("CURL.Release"; $curl) ]
Query file list with MLSD:
Set Variable [ $curl ; Value: MBS("CURL.New") ]
Set Variable [ $r ; Value: MBS( "CURL.SetOptionWildCardMatch"; $curl; 1 ) ]
Set Variable [ $result ; Value: MBS("CURL.SetOptionURL"; $curl; CURL Test::URL & "*" ) ]
Set Variable [ $result ; Value: MBS("CURL.SetOptionPassword"; $curl; CURL Test::Password) ]
Set Variable [ $result ; Value: MBS("CURL.SetOptionUserName"; $curl; CURL Test::Name) ]
Set Variable [ $result ; Value: MBS("CURL.SetOptionVerbose"; $curl; 1) ]
Set Field [ CURL Test::Result ; MBS("CURL.Perform"; $curl) ]
Set Field [ CURL Test::listing ; MBS( "JSON.Colorize"; MBS("CURL.FileInfos"; $curl)) ]
Set Field [ CURL Test::debug ; MBS("CURL.GetDebugMessages"; $curl) ]
Set Variable [ $result ; Value: MBS("CURL.Release"; $curl) ]
This function checks for a license.
Created 16th October 2018, last changed 4th August 2023