Some new functions

Use this forum to request features. Maybe you'll get lucky!
Post Reply
User avatar
Soffort
Posts: 44
Joined: Wed Mar 15, 2017 7:27 pm

Some new functions

Post by Soffort »

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.
admin
Site Admin
Posts: 1669
Joined: Sat Feb 08, 2014 10:39 pm

Re: Some new functions

Post by admin »

Thanks for you requests, Suffort! I will take a look at it :-)

-steinar
Post Reply