Path Manipulation




Path Manipulation


Author: Kyobong An

 

Description

This plugin contains various functions to manipulate “filepathes”.

 

For detailed explanation of the base technology of this plugin, please refer to this link below.

 

https://docs.python.org/3/library/os.path.html

 



Need help?

Technical contact to tech@argos-labs.com


May you search all operations,


Required Input

  • Full file path of a file

 

Optional Input

  • Choose one of these operations – See below for usage and return value samples.

- abspath

- basename

- dirname

- exists

- expandvars

- getatime

- getmtime

- getctime

- getsize

 

Return Value

  • Select String - See chart below

 

When input is C:\Users\ARGOSLABS\Desktop\Temp\data.csv


OperationsFull NameOutput (Example)
abspathAbsolute pathC:\Users\ARGOSLABS\Desktop\Temp\data.csv
basenameBase namedata.csv
dirnameDirectory nameC:\Users\ARGOSLABS\Desktop\Temp\
existsExists?True/False
expandvarsExpand Environment Variablesee below
getatimeGet access timedate-time mm-dd-yyyy hh:mm:ss
getmtimeGet modified timedate-time mm-dd-yyyy hh:mm:ss
getctimeGet created timedate-time mm-dd-yyyy hh:mm:ss
getsizeGet filesizefile size in bytes



(tick) Note: How to use “expandvars”

This function returns path that are stored in the environment variables in fully expanded format. For example, %appdata% will return C:\Users\ARGOSLABS\AppData\Roaming

 

 

Result Codes

 

0 for successful execution

1 for invalid input

9 for everything else

 

How to set parameters


Return Code

Code
Meaning
0Execution successful
1Open error
9Other errors



All Plugins