#1316: Implement file/folder renaming in Web UI
--------------------------------------+-------------------------------------
Reporter: powtrix | Owner: damoxc
Type: feature-request | Status: assigned
Priority: major | Milestone: 1.4.0
Component: webui | Version: 1.3.0_dev
Keywords: rename file folder webui |
--------------------------------------+-------------------------------------
Comment(by bmnot):
This is a big deal, and one of the main things preventing the WebUI from
being completely standalone.
I am guessing that the reason it has not been added in 2 years is that
it's difficult to implement file-naming over the web (when you don't have
access to the local filesystem to verify paths, permissions, existing file
clobbering, etc).
Well, how about:
* Implementing a Rename option in the right-click menu for files in the
WebUI, which pops up a simple text field, pre-filled with the current
filename.
* Sanitizing the input by disallowing slashes and illegal filename
characters in the text field.
* Doing a JSON-RPC call to ask the daemon "will this requested name (i.e.
"new filename.txt") be okay?" and getting a reply like "1:ok, 2:file
exists and can be overwritten, 3:file exists and no permission to
overwrite"
This gets rid of the need to implement path-moving when renaming a file,
and takes care of permissions/clobbering issues.
Thoughts?
--
Ticket URL: <http://dev.deluge-torrent.org/ticket/1316#comment:6>
Deluge <http://deluge-torrent.org/>
Deluge project
--
You received this message because you are subscribed to the Google Groups
"Deluge Dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/deluge-dev?hl=en.