abemassry / wsend

wsend: The opposite of wget
https://wsend.net
GNU General Public License v3.0
77 stars 8 forks source link

Deletion/Update of files from CLI #4

Closed vannell closed 10 years ago

vannell commented 10 years ago

I think that it could be useful to be able to delete a file from CLI if we are the owner of this file, quicker than by the web interface (don't like to leave my console) and useful for scripting purpose.

Another pratical use case : want to push an updated version of a file without keeping the old reference anymore. A possible way to achieve that would be to provide a request with user id (for owner identification), the original link to the last uploaded version and the new version as attachment.

I also thought about a request to retrieve the full list of uploaded files, but I think we can manage to keep it on local side or update (so the purpose of update request ;))

Hope it seems useful for other ones

abemassry commented 10 years ago

delete added in version 1.30

Will update more and close out this issue when all the features are implemented here.

abemassry commented 10 years ago

update added in version 1.31

https://github.com/abemassry/wsend/commit/34effc3c14e4371291b8439f60568cfe23776c18

I would like to provide a full list of uploaded files for the next update.

vannell commented 10 years ago

A great thanks for these features, it works great.

I already begin to work on a local list of upload files, and I plan to improve it now that update feature is there.

I rewrite a bit what you have add, so the source is not becoming to hard to read and follow #6

abemassry commented 10 years ago

list files from server added in version 1.35

https://github.com/abemassry/wsend/commit/9f66be8c2e88d580353a8b8dfd5b404803d137b1#diff-08421a42dae2ce66d539913d081af995

that takes care of all the issues in this issue, hope you like the list server feature and let me know if you think we should do some type of sync with the local, although it may be a separate daemon that syncs, like wsend-sync or something like that