path ( string type ) : string
Return a path.
Example
tmpFile = path("tmp")+"myFile.txt" //-> C:\Users\XXX\AppData\Local\Temp\myFile.txt on Windows and /tmp/myFile.txt on Linux
downloadPath = isWindows() ? path("user")+"Downloads\\" : "/root/Downloads/" //C:\Users\XXX\Downloads\ on Windows and /root/Downloads/ on Linux
Parameters
type
Possible values:
• "desktop" : return the Desktop path. Ex: C:\Users\ceube\Desktop\
• "temp" or "tmp" : return temporary directory. Ex: C:\Users\ceube\AppData\Local\Temp\
• "logs_grimport" : return the Grimport folder for current logs in your User directory. Ex: C:\Users\ceube\Grimport Crawler\analysis logs\2022-11-07 20.49.28 - test - 7261\
• "user" : return the user directory. Ex: C:\Users\ceube\
• "program_files" : return Program Files directory. Ex: C:\Program Files\
• "program_files_x86" : return Program Files (X86) directory. Ex: C:\Program Files (x86)\
• "grimport" : return Grimport folder in your User directory. Ex: C:\Users\ceube\Grimport Crawler\
• "pcloud_customer" : return the pCloud folder corresponding to the shared folder of the customer (the folder name must be its Cloud code). Ex: P:\dossiersCloudClients\54872258754\
• "pcloud_tmp" : return the pCloud TMP folder path. Ex: P:\dossiersCloudClients\TMP\
• "pcloud_root" : return the pCloud root folder path. Ex: P:\dossiersCloudClients\
• "application" : return the application path. Ex: C:\Users\ceube\Grimport Crawler\
• "appdata" : return Appdata/Local directory. Ex: C:\Users\ceube\AppData\Local\
• "desktop" : return the Desktop path. Ex: C:\Users\ceube\Desktop\
• "temp" or "tmp" : return temporary directory. Ex: C:\Users\ceube\AppData\Local\Temp\
• "logs_grimport" : return the Grimport folder for current logs in your User directory. Ex: C:\Users\ceube\Grimport Crawler\analysis logs\2022-11-07 20.49.28 - test - 7261\
• "user" : return the user directory. Ex: C:\Users\ceube\
• "program_files" : return Program Files directory. Ex: C:\Program Files\
• "program_files_x86" : return Program Files (X86) directory. Ex: C:\Program Files (x86)\
• "grimport" : return Grimport folder in your User directory. Ex: C:\Users\ceube\Grimport Crawler\
• "pcloud_customer" : return the pCloud folder corresponding to the shared folder of the customer (the folder name must be its Cloud code). Ex: P:\dossiersCloudClients\54872258754\
• "pcloud_tmp" : return the pCloud TMP folder path. Ex: P:\dossiersCloudClients\TMP\
• "pcloud_root" : return the pCloud root folder path. Ex: P:\dossiersCloudClients\
• "application" : return the application path. Ex: C:\Users\ceube\Grimport Crawler\
• "appdata" : return Appdata/Local directory. Ex: C:\Users\ceube\AppData\Local\