I am creating a workflow to check the total size of root path of a ftp/sftp, if size is greater than 30 MB I need to send an alert. I have the username,password,server details stored in a schema. I have queried that schema and stored all these values in 3 instance variables. Then in another js I created a variable and used du command as below it gave me size : -53,du: cannot access 'sftp://username:email@example.com/root/':firstname.lastname@example.org/root/': No such file or directory
NB Security-wise and general coding practices-wise, you shouldn't store login credentials in plaintext or use action-at-a-distance and state when it's not required. Also use keys instead of passwords for auth if possible.