Hi! I'd have some proposals for changes to the superglue-protocol which I'd like to open for discussion. Using different posts for the different proposals to keep discussions focused..
Some commands pass along parameters (ls -la XY, wget -O ..) which rarely change so I was thinking that I'd try to hardcode any fixed parameters server-side to make the interface a bit cleaner, so to speak, and easier to implement on other backends.
An incomplete list of commands with an without conditional parameters from the top of my head:
-
mv ./from/path ./to/path renaming a file
-
cp ./from/path ./to/path copying a file
rm ./path/to/file deleting a file
-
lss -al ./path used in many cases either to list folder contents or check existence of a specific file (when copying, renaming)
- possible alternative: just lss or ls
-
rm -r ./path/to/folder deleting a folder and contents
- possible alternative rmdir ./path/to/file
-
wget http://localhost/resources/empty.html -O ./path/to/new/file.html used to create a new html/superglue file
- possible alternative mkhtml ./path/to/new/new/file.html
in particular the wget command would need a replacement in my eyes, especially because the URL to the resources folder might actually vary and thus - by removing any reference - the editor could be completely oblivious to the internals of the server.
Please help completing the list, if you see anything missing. (I think I remember some log-command in the server-script?)