Shared Folder (simple command line request)
-
Hi.
I would like all of the files that are read and written from this folder:
/opt/retropie/configs/nds/drastic/backupTo have all that be done here instead:
/home/pi/RetroPie/savesThe reason for this is that I use Cloud Saving and have everything in a single folder.
Cheers. :)
-
Would a symlink work?
ln -s /opt/retropie/configs/nds/drastic/backup /home/pi/RetroPie/saves
Or flip-flop if you need to. First one is the "real" directory where the files exist, second one is the "shortcut" that will point to it. Most things won't care which is which but cloud saving might.
-
@sleve_mcdichael said in Shared Folder (simple command line request):
Would a symlink work?
ln -s /opt/retropie/configs/nds/drastic/backup /home/pi/RetroPie/saves
Or flip-flop if you need to. First one is the "real" directory where the files exist, second one is the "shortcut" that will point to it. Most things won't care which is which but cloud saving might.
Yes and no on that working.
For some reason, Drastic is very much different than the other emulators so it doesn't trigger the cloud saving feature script I have installed.
ln -s /opt/retropie/configs/nds/drastic/backup /home/pi/RetroPie/saves
How can I remove that symlink please?
I guess with Drastic, I'll just do manual file transfers using FTP on a tablet.
EDIT:
Yeah, I have no idea what I'm doing here. :D
pi@retropie:~ $ rm -f /home/pi/RetroPie/saves rm: cannot remove '/home/pi/RetroPie/saves': Is a directory pi@retropie:~ $ rm -f /opt/retropie/configs/nds/drastic/backup rm: cannot remove '/opt/retropie/configs/nds/drastic/backup': Is a directory
-
rm: cannot remove '/home/pi/RetroPie/saves': Is a directory
That means the directory already existed; thus, the symlink was unable to be created.
Use
rmdir
to remove a directory (it has to be empty. Or you can userm -r
to recursively remove the non-empty directory and everything in it. Be careful withrm -r
.) A symlink, since it's not a directory, can be removed with a simplerm
. -
@addison
Could try to mount the folder instead of symbolic link?mount --bind /opt/retropie/configs/nds/drastic/backup /home/pi/RetroPie/saves
Try it first manually, if it works for you, add the mount command to autostart.sh or rc.local
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.