78
78
# action=remove: Delete a file(s) or directory(s) (recursively).
79
79
# path: The path to the file or directory to delete. Can be specified
82
# action=move: Move or rename a file or directory.
83
# from: The path to the file or directory to be renamed.
84
# to: The path of the target filename. Error if the file already
87
# action=putfile: Upload a file to the student workspace.
88
# path: The path to the file to be written. If it exists, will
89
# overwrite. Error if the target file is a directory.
90
# data: Bytes to be written to the file verbatim. May either be
91
# a string variable or a file upload.
93
# Clipboard-based actions. Cut/copy/paste work in the same way as modern
94
# file browsers, by keeping a server-side clipboard of files that have been
95
# cut and copied. The clipboard is stored in the session data, so it persists
96
# across navigation, tabs and browser windows, but not across browser
99
# action=copy: Write file(s) to the session-based clipboard. Overrides any
100
# existing clipboard data. Does not actually copy the file.
101
# The files are physically copied when the clipboard is pasted.
102
# path: The path to the file or directory to copy. Can be specified
105
# action=cut: Write file(s) to the session-based clipboard. Overrides any
106
# existing clipboard data. Does not actually move the file.
107
# The files are physically moved when the clipboard is pasted.
108
# path: The path to the file or directory to cut. Can be specified
111
# action=paste: Copy or move the files stored in the clipboard. Clears the
112
# clipboard. The files are copied or moved to a specified dir.
113
# path: The path to the DIRECTORY to paste the files to. Must not
116
# Subversion actions.
117
# action=svnadd: Add an existing file(s) to version control.
118
# path: The path to the file to be added. Can be specified multiple
121
# action=svnrevert: Revert a file(s) to its state as of the current revision
122
# / undo local edits.
123
# path: The path to the file to be reverted. Can be specified multiple
126
# action=svnupdate: Bring a file up to date with the head revision.
127
# path: The path to the file to be updated. Can be specified multiple
130
# action=svncommit: Commit a file(s) or directory(s) to the repository.
131
# path: The path to the file or directory to be committed. Can be
132
# specified multiple times. Directories are committed
134
# logmsg: Text of the log message. Optional. There is a default log
135
# message if unspecified.
137
# TODO: Implement the following actions:
138
# move, copy, cut, paste, svnadd, svnrevert, svnupdate, svncommit