Close

still not that but for me - shareitso ...

A project log for oiyshTerminal

Local server collection of IoT system with some additional futures. Works by default offline, based on .deb .npm .pipy

yoyoek1yOyOeK1 02/27/2023 at 15:220 Comments

I really need to make order in javascript => WS => node-red => execute I found new interesting things when I was trouble shooting bugs. 

Did you know that in javascript 

let a = 'abc\"def';

let a = 'abc\"def';
let b = 'abc\\"def';
// a will give you abc"def ? :)
// b will give you abc\\"def ? :)..

 So it's 4 days of tracing and it will be that if you want to invoke bash command with double quetes you need to add double ( This is my big fear back slash madness )

I needed some sharing abilities now, fast. This lead to otdm-tools-fuse but that in diferent log. shareitso was waiting for speed up. I needed to speed up section of indexing all files, sorting them by mod date, they are coming from different directories and I want size aahh.

so I was able to spit out this in bash ...

lDir="/tmp";jsK="\n| .+=[{\"modTime\":\"%Ay-%Am-%Ad %AT\", \"size\":\"%s\", \"file\":\"%p\"}]";echo $jsK;a=$(cd $lDir;find -L ./ -type f -printf "$jsK" | sort -r); echo "[]" | jq ". $a"

 to get json with all files in lDir order by modDate some sprinkle of jq => bum.

To the subject of not doing packitso but shareitso ?

look at the functionality :)

Let me know what you thing!

Discussions