aMule Forum
English => Feature requests => Topic started by: esplinter on March 09, 2012, 03:59:11 PM
-
Hi,
I have seen I can add as many folders as I wish to share in the config file "Shareddir.dat" but those folders aren´t shared recursively. Would be great to be able to decide which folders to share recursively and which not. Something like this maybe?
$> cat Shareddir.dat
RECURSIVE /path/to/my/shared/folder
NOT-RECURSIVE /path/to/my/second/shared/folder
-
This has been discussed in the past several times, and iirc was decided against.
You are not supposed to share huge recursive trees of a file system anyway, so it doesn't really matter that much.
-
Hi,
I don´t want to share too many dirs (just around 80). I have a collection of video files ordered in some subfolders and wanted to share all of them.
just used this workaround to add all the folders I want to share. in case is useful for anyone:
$> find /media/USB2TB/Peliculas/ -iname "*" -type d >> $HOME/.aMule/shareddir.dat
-
I wrote a little more complex script to generate the list:
$ cat /amule/Updateshatedir.sh
#!/bin/sh
find /ZFSMEDIA/AMULE/Mule-1/MULE /ZFSMEDIA/VIDEO/Video-1 -type f -not -empty -printf "%h\n" \
| uniq \
| grep -v lost+found \
| grep -v /.Trash \
| grep -v noshare \
| sort -ur \
| grep -v NEW/ \
> /amule/shareddir.dat
I know the antigreps can be done with one command but this is easier to read.