Req: Rename Share/Folder

Req: Rename Share/Folder

Postby johan72 » Sun Mar 25, 2012 8:24 pm

Would like to have the possibilty to rename a share/folder.

example:
Do have a share called "Music" which has over 500GB of mp3 files.
The FireFly functionality will create a share called "mp3" or uses the share "mp3" if already present.
Renaming my existing "Music" share to "mp3" would save me some work.

The above example is nòt the best, because its possible to add other shares to firefly.
But it makes my meaning clear.
grtz
Johan
johan72
 
Posts: 82
Joined: Sun Jul 31, 2011 8:31 pm
Location: Nieuwegein, Netherlands

Re: Req: Rename Share/Folder

Postby fvdw » Wed Mar 28, 2012 9:51 pm

this renaming of folders can already be done by using for instance winscp. I did it many times, in the example you mention renaming the /share/1000/Music folder to /share/1000/mp3 and creating a new empty /share/1000/Music would do the trick. But changing the name of a shared folder in the webinterface would be nicer option. However I think some problems might arise with updating the database of the NAS, samba and NFS databases. Need to have a close look to it to see how it can be done but in principle it is possible. The sequence will be renaming the directory where the shared folder is pointing to to a temporary name, then delete the share in the webinterface, create a new share with the new name and finally renaming the directory with the temporary name to this new share name. This will only work in case the new name you want to use is not an existing share yet.
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Req: Rename Share/Folder

Postby Jocko » Thu Mar 29, 2012 9:20 am

This simple operation is tricky in implementation ...

Note : It also interferes with the FTP server.

Compared to the sequence of fvdw, we can simplify the steps:
- Test if the new name is already used for a filename or foldername.
If the new name can be used,
- Rename directly the foldername (used a temporary name is not required)
- Create a new share with the current settings of the original share (permissions, ftp/nfs/samba access ...).
- Delete the old partition,
- Reconfigure samba server and NFS or FTP if they are enable ...

NB: for USB shares, I think it is better not to change their name: the changes will be lost after removal ;)
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Req: Rename Share/Folder

Postby johan72 » Fri Mar 30, 2012 5:33 pm

Appreciate your willing to have a look and your feedback on it.
A nice and simple request I thougt, high impact and lots of dependencies I see.
Please put this request somewhere on the end of the list, other things are more important.
johan72
 
Posts: 82
Joined: Sun Jul 31, 2011 8:31 pm
Location: Nieuwegein, Netherlands

Re: Req: Rename Share/Folder

Postby Jocko » Mon May 21, 2012 7:44 pm

Hi Johan72,

Finally, the additional code is finished and you'll be able to rename some shares with the next release (but not the technical shares like 'tr-daemon')
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France


Return to Development

Who is online

Users browsing this forum: No registered users and 10 guests