Here are actions and commands that you can give to SPW to let you read and write to SPW's local filesystem.
To view a directory under (or including) /spw
, use the "showls" action of the SPW script. For example, the following link will display the a directory listing of the /spw/bin directory:
http://purl.net/net/spw/spw.pl?action=showls&path=\/spw\/bin\/
To view a file under the /spw
directory, use the "showfile" action of the SPW script. For example, the following link will display the current code of spw_main.pl
:
http://purl.net/net/spw/spw.pl?action=showfile&path=\/spw\/bin\/spw_main.pl
In other words, in both cases, you access the spw.pl
script, with argument "action=something", with the path of the file you wish to show given as a "path" argument, with the '/'s in the path being quoted by backslashes.
To download a .tar of the entire /spw
directory, along with the wrapper files in /var/www
, use the following link:
http://purl.net/net/spw/spw.pl?action=download&path=\/spw\/spw.tar
The most practical way to submit a change is via a unix patch file. See DoPatch.
See SpwTutorial for an example of how to make a patch file suitable for application to SPW.
Other methods: