4D v13.4Convert path system to POSIX |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v13.4
Convert path system to POSIX
Convert path system to POSIX
The Convert path system to POSIX command converts a pathname expressed with the system syntax as a pathname expressed with the POSIX (Unix) syntax. Pass the pathname for a file or folder in the systemPath parameter, expressed with the system syntax (Mac OS or Windows). This path may be absolute or relative to the database folder (folder containing the database structure file). It is not mandatory that the elements of the path actually exist on the disk at the time the command is executed (the command does not test the validity of the pathname). The command returns the complete pathname of the file or folder expressed in the POSIX syntax. The command always returns an absolute pathname, regardless of the type of path passed in systemPath. If you passed a relative pathname in systemPath, 4D completes the value returned by adding the pathname of the database folder. The optional * parameter can be used to specify the encoding of the POSIX path. By default, Convert path system to POSIX does not encode the special characters of the POSIX path. If you pass the * parameter, the special characters are translated (for example, "My folder" becomes "My%20folder"). Example under Mac OS $path:=Convert path system to POSIX("machd:file 2.txt") Example under Windows $path:=Convert path system to POSIX("c:\docs\file 2.txt") |
PROPERTIES
Product: 4D
INDEX HISTORY
Created: 4D v12 SEE ALSO
Convert path POSIX to system TAGS POSIX, Chemin accès*** |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||