FILEURLTOOL(1) | General Commands Manual | FILEURLTOOL(1) |
fileurltool
— a
tool to exercise the NSURL/CFURL resource property APIs
fileurltool |
[-by-path ] [-by-ref ]
[-cf1 ] [-cfm ]
[-ns1 ] [-nsm ]
[-print-type ]
[-print-cache ] [-leaks ]
[get URL KEY ...] [set URL
KEY=VALUE] [check URL]
[getflags URL] [getvolflags
URL] [keys] |
fileurltool
exercises the NSURL
getResourceValue:forKey:error: and
CFURLCopyResourcePropertyForKey
()
APIs on given file: scheme URLs.
This tool accepts of the commands get set check getflags getvolflags keys each of which has certain options.
The values for KEY can be the same as the constant string in the appropriate API, either the CF or NS varients, or it can be a string containing letters, digits, "_" or ".", which will be treated as if it was the value of a constant in the API.
Examples of valid keys include NSURLNameKey, NSURLCreationDateKey.
The values for VALUE depend on the data type asssociated with the value in the API. If the data type is a string, then the string is just used; if it is a boolean then 1 or YES or 0 or NO are appropriate. If the type is a number,
A list of flags and their descriptions:
-by-path
-by-ref
-cf1
CFURLSetResourcePropertyForKey
()
API-cfm
CFURLCopyResourcePropertiesForKeys
()
/
CFURLSetResourcePropertiesForKeys
()
API-ns1
-nsm
June 1, 2024 | Darwin |