Rockbox Technical Forums

Rockbox Development => Feature Ideas => Topic started by: davespagnol on April 25, 2020, 11:12:30 PM

Title: SOLVED: Option in Database to ignore folders whose name starts with a dot.
Post by: davespagnol on April 25, 2020, 11:12:30 PM
As a Linux user, I didn't realise that when I deleted some music files, they actually went into a folder on my SDHC card called ".Trash-$1000" or similar. All of a sudden, the database was showing 2 or 3 copies of each song in an Album. Obviously the excess files were still taking up space on the SDHC card, and I'd have had to deal with their presence eventually, but it might be an idea if the Database can be set to ignore dot folders.

Thanks!
Title: Re: Option in Database to ignore folders whose name starts with a dot.
Post by: cereal_killer on April 26, 2020, 03:21:43 AM
Run the disktidy plugin to remove those files.
Title: Re: Option in Database to ignore folders whose name starts with a dot.
Post by: speachy on April 29, 2020, 02:01:40 PM
As a Linux user, I didn't realise that when I deleted some music files, they actually went into a folder on my SDHC card called ".Trash$1000" or similar. All of a sudden, the database was showing 2 or 3 copies of each song in an Album. Obviously the excess files were still taking up space on the SDHC card, and I'd have had to deal with their presence eventually, but it might be an idea if the Database can be set to ignore dot folders.

The already-implemented solution is to create a file called database.ignore in any folder you don't want.  Granted, I don't know how that might interact with the trash bin logic on the system that created that folder to begin with.
Title: Re: Option in Database to ignore folders whose name starts with a dot.
Post by: davespagnol on April 29, 2020, 03:28:01 PM

The already-implemented solution is to create a file called database.ignore in any folder you don't want.  Granted, I don't know how that might interact with the trash bin logic on the system that created that folder to begin with.

Every time you empty the trash the file database.ignore will be deleted. But it's OK, I created the file .Trash-$1000 and now "Move to Wastebin" doesn't work on the SDHC card, and I can only fully Delete unwanted files on it. That will do for now.