Some new functions
Posted: Wed Sep 13, 2017 6:08 pm
Hello, Steinar.
Can you add some functions, like this, if possible?
$drivespace(path="string/%variable%"[, return format=integer]) - Return information about drive space condition.
Formats: 0 - full capacity in bytes, 1 - used space in bytes, 2 - free space in bytes, 3 - used space in percents, 4 - free space in percents
$translit(input string="string/%variable%", path to dictionary="string/%variable%") - Transliterate string.
It using dictionary file with simple transliteration rules, like "ц=ts", "ш=sh" in every line. Or, maybe, JSON?
$uuid() - generate UUID.
For filename creation or something else.
$random(begin=integer/%variable%, end=integer/%variable%) - Return random integer between two numbers.
For some reasons, like distribute media to random different destinations for load balancing or something else.
$base64(input string= "string/%variable%"[, forward/backward=integer]) - Transform string to base64 and back.
0 - forward (default), 1 - backward.
For safe transform filenames with different symbols between filesystems and shares, or other useful things.
$crc32(path to file="string/%variable%") - Simple checksum generator for files.
For e-mails, logs, checking files.
$touch(path to folder="string/%variable%) - Check folder or file for permission.
Useful before delivery. Very useful, if you can add "Hold" option to Conditional node (in my other request )
Maybe, with different returns: "-" - access denied, "r" - read only, "w" - write access. Or something like that.
Thank you.
Can you add some functions, like this, if possible?
$drivespace(path="string/%variable%"[, return format=integer]) - Return information about drive space condition.
Formats: 0 - full capacity in bytes, 1 - used space in bytes, 2 - free space in bytes, 3 - used space in percents, 4 - free space in percents
$translit(input string="string/%variable%", path to dictionary="string/%variable%") - Transliterate string.
It using dictionary file with simple transliteration rules, like "ц=ts", "ш=sh" in every line. Or, maybe, JSON?
$uuid() - generate UUID.
For filename creation or something else.
$random(begin=integer/%variable%, end=integer/%variable%) - Return random integer between two numbers.
For some reasons, like distribute media to random different destinations for load balancing or something else.
$base64(input string= "string/%variable%"[, forward/backward=integer]) - Transform string to base64 and back.
0 - forward (default), 1 - backward.
For safe transform filenames with different symbols between filesystems and shares, or other useful things.
$crc32(path to file="string/%variable%") - Simple checksum generator for files.
For e-mails, logs, checking files.
$touch(path to folder="string/%variable%) - Check folder or file for permission.
Useful before delivery. Very useful, if you can add "Hold" option to Conditional node (in my other request )
Maybe, with different returns: "-" - access denied, "r" - read only, "w" - write access. Or something like that.
Thank you.