Empty directories - General Questions and Answers

Hi. I need to find all empty dirs in the specific dirs, so I started google that question and found following:
1. "find" on android doesn't work with "-empty" arg.
2. Google shows me some play store apps, which should find empty dirs, but they delete ALL of them right away on the whole system (or Android dir) and some of them can't even see SD card, but in my case I only need found them only, not auto delete.
So how one can find all empty dirs on android ?

Xda801 said:
Hi. I need to find all empty dirs in the specific dirs, so I started google that question and found following:
1. "find" on android doesn't work with "-empty" arg.
2. Google shows me some play store apps, which should find empty dirs, but they delete ALL of them right away on the whole system (or Android dir) and some of them can't even see SD card, but in my case I only need found them only, not auto delete.
So how one can find all empty dirs on android ?
Click to expand...
Click to collapse
I use an app called "Empty Folder Cleaner" on Google Play store. It's never deleted a folder that couldn't easily be re-written by a seldom used app. Been using for over a year now with no problems. Ad-Free, too.
Only catch, is you can't do your SD card w/o root access. Internal storage works fine though, (non-root)
Description by the app publisher;
Annoyed with loads of empty folders in your file manager? Use this app.
Key Features
1)Multiple options to delete empty folders
2)Delete empty folders from internal storage(No root required)
3)Delete empty folders from external storage/memory card(Root required for this feature only)
4)No advertisement
With a single click all the empty folders will be deleted.
Options to delete empty folders
1)Show progress - get the progress of which file is being checked for empty folders
2)Log deleted empty folders - get the list of all the empty folders deleted
3)Scan ANDROID created folders - will not delete empty folders from the directories /Android/data, /LOST.DIR, /DCIM
Note: folders with ".nomedia" and other hidden files will not be deleted as they might be required by the system or the app which has created it. Developer is not responsible for any problem created by the app. You use the application at your own risk
Sent from my SM-N950U using Tapatalk

darth_vapor said:
I use an app called "Empty Folder Cleaner" on Google Play store. It's never deleted a folder that couldn't easily be re-written by a seldom used app. Been using for over a year now with no problems. Ad-Free, too.
Only catch, is you can't do your SD card w/o root access. Internal storage works fine though, (non-root)
Description by the app publisher;
Annoyed with loads of empty folders in your file manager? Use this app.
Key Features
1)Multiple options to delete empty folders
2)Delete empty folders from internal storage(No root required)
3)Delete empty folders from external storage/memory card(Root required for this feature only)
4)No advertisement
With a single click all the empty folders will be deleted.
Options to delete empty folders
1)Show progress - get the progress of which file is being checked for empty folders
2)Log deleted empty folders - get the list of all the empty folders deleted
3)Scan ANDROID created folders - will not delete empty folders from the directories /Android/data, /LOST.DIR, /DCIM
Note: folders with ".nomedia" and other hidden files will not be deleted as they might be required by the system or the app which has created it. Developer is not responsible for any problem created by the app. You use the application at your own risk
Click to expand...
Click to collapse
Yes, this is one of the apps I found, but it is not what I need, as I said in the first post.
Sent from my santoni using XDA Labs

Related

Folder Structures in SDCARD

Hi everybody!
I just got my 1st Android Devide (DHD) and already root, clockwork, changed rom, etc. However, my problem is related to the directories structures inside my SDCARD.
I have 2 questions:
1- I moved some apps that I have in my main memory to my SDCARD via App Settings. However, when I go to my sdcard in windows explorer, I don't find these files. I'm not sure then if is really moving to my sdcard. I just realized some new folders, but they are empty. Does anyone knows what I'm doing wrong?
2- The second question it's linked with the first. I would like to organize in my SDCARD a nice folder structure. Something like:
/
/Songs/
/Photos/
/Documents/
/Backups/
/Games/
/Apps/
And then if you go inside the Apps folder, you have another folder with the name of the application. Pretty much like Program Files folder in Windows.
Is this possible? For Songs, Photos, Documents, I created a folder and it worked. But what about for apps and games that I got on the market?
My SDCARD has also a lot of folder/files that were copied when I put the sdcard on the device. I don't know if I can delete that. Any idea?
Thanks for the help in advance!
Moved to Q&A, not dev related.
Anyone?
Any tip?

[Q] Folder for apps

Hello!
When I install app's I see that a folder is created on the SD card.
Is there a way that app's will install and create folders in a specific folder?
So that my SD card won't look like a mess?
Thats impossible better way is to monitor the dates and time of install of an app then check it to your file explorer so you will know which app created a folder.
Sent from my Nexus S
BUMP
OK thanks!
Some apps allow you to choose the path for the sd folder. Check the app settings to see if this is configurable.

[Q] Space not freed after messing with .thumbnails

Heya guys,
this is mostly a copy of a thread I created in a device-specific forum (original thread), but since nobody was able to answer the question there and considering it doesn't seem to be device-specific after all, I figured I'd go ahead and ask here as well. The copy & paste part begins here, with slight modifications:
A few days ago, I found that I was in dire need of some more free space on my Samsung Galaxy S4 / GT-I9505's internal storage and found that only the contents of /sdcard/DCIM/.thumbnails were taking up space. After a while of trying to get rid of those files that kept creating themselves again, I followed some advice I read on an Android forum: I deleted the contents of the .thumbnail folder, went to Settings -> Apps and cleared the data of the Gallery and Media Storage apps, respectively, before rebooting the phone.
The contents did disappear for good, but neither Total Commander nor the list of installed apps in the settings nor the Storage summary in the settings showed any different amount of free space than before. To make matters worse, the number didn't even change after I found and deleted about 1 GB of files left by an already uninstalled app, i.e. it seems to be stuck on that value. At the same time, SD Maid tells me that I should have a good 5 GB of free space more than the system is showing. Neither restarting nor wiping the cache and dalvik cache helped.
My rooted GT-I9505 is running this unofficial port of AOKP 4.3, Milestone 1, and version 6.15.6 of PhilZ/CWM Advanced. I'm not sure whether there's more information I might need to provide, other than that the size of the thumbnails files apparently exploded (about 4 GB) when I moved quite a lot of data and obb folders to my external storage using FolderMount.
I didn't find any information about this kind of problem anywhere and am afraid I messed up so badly that I might need to reflash...or worse. Do you have an idea how I can try to fix it?
You could try installing Disable Service and forcing the media indexing service to never run.
gordon1986 said:
You could try installing Disable Service and forcing the media indexing service to never run.
Click to expand...
Click to collapse
Thanks for the input! That sounds like a plan, but I'm not really sure whether I'm doing it right. I got the app, figured the media indexing service had to be found in the Media Storage app's entry, but I only found "MediaScannerService" and "MtpService" there. Since I try to be more careful now, I'd rather not deactivate any of those without being sure that it is what I am aiming for.
So, long story short: Is either of those the media indexing service or do I have to look somewhere else?
Best thing to do is delete the .thumbnails folder in DCIM folder. After this create a new file with the name .thumbnails in the DCIM folder.
Note: You have too delete .thumbnails FOLDER and create .thumbnails FILE. You can use es file explorer to do this.
It is based on the simple principle that in Linux ext file system a file and folder cannot have the same name.
Sent from my LT28at using xda app-developers app
Hit Thanks if this helped you.
osamaanjum said:
Best thing to do is delete the .thumbnails folder in DCIM folder. After this create a new file with the name .thumbnails in the DCIM folder.
Click to expand...
Click to collapse
While I wasn't sure it would help, I tried what you suggested. Alas, it didn't work; the .thumbnails folder is empty without freeing the space taken by its former contents since I did what I described in my original post, after all. However, should I manage to fix this problem with a reflash, I suppose I'll do just that, replacing the folder with an empty file of the same name. Thanks.
It works for me.
I 've uploaded the image of DCIM directory (folder). In place of .thumbnails folder you can notice .thumbnails file.

DELETED storage/emulated/0 accidently

DEVICE - NEXUS 5 (un-rooted)
PROBLEM - DELETED storage/emulated/0 accidently
I connected my phone using usb to computer, phone connected as a device and nexus5 icon was created with other directories, I clicked nexus5 icon and then clicked internal storage folder which has all the folders made on phone like music, downloads, android etc. As I was cleaning my phone of redundant folders and files created by apps. I came across folder naaed storage, it has another folder emulated which in turn had file named 0. I thought of it as a file created by some app so deleted (Shift + delete) it. All the images of my phone i.e DCIM, whatsapp, screenshots etc got deleted and phone memory got free. Now my Google Music app can't read my songs present on my phone. I just re-booted (restart) my phone and nothing is resolved.
Now, I connected my phone to compugter via usb, nexus5 icon is shown but when I click it "folder is empty" message is shown.
Please help to get files back and resolve whatever issues (i.e Google Music unable to read songs present on phone) have occured because of deleting that file
aditya7550 said:
DEVICE - NEXUS 5 (un-rooted)
PROBLEM - DELETED storage/emulated/0 accidently
I connected my phone using usb to computer, phone connected as a device and nexus5 icon was created with other directories, I clicked nexus5 icon and then clicked internal storage folder which has all the folders made on phone like music, downloads, android etc. As I was cleaning my phone of redundant folders and files created by apps. I came across folder naaed storage, it has another folder emulated which in turn had file named 0. I thought of it as a file created by some app so deleted (Shift + delete) it. All the images of my phone i.e DCIM, whatsapp, screenshots etc got deleted and phone memory got free. Now my Google Music app can't read my songs present on my phone. I just re-booted (restart) my phone and nothing is resolved.
Now, I connected my phone to compugter via usb, nexus5 icon is shown but when I click it "folder is empty" message is shown.
Please help to get files back and resolve whatever issues (i.e Google Music unable to read songs present on phone) have occured because of deleting that file
Click to expand...
Click to collapse
Those files are gone man, u might have been able to save them prior to rebooting the device but they are gone now and your going to need to flash the factory image in order to fix your file system, devices have a certain structure of creating file systems, that's why they tell ppl not to delete anything if your not absolutely sure u know what your doing, so like I said, those files are gone, u may be able to get your pictures back if they were backed up using Google photos, but u still need to flash the factory image to fix your file system
Sent from my XT1526 using Tapatalk

recover lost photo with root access

hello,
I have a xiaomi redmi 9 pro phone.
rooted.
I used fstop app to move 80 photo from internal memory to sdcard. sdcard was full and the move has been done and create 0kb file in sdcard.
Photo from inernal memory have been deleted by the app.
I used a lot of app to look for my lost photo but I don't find stuff. I found a lot of "not deleted photo". I don't find any usefull tool that could ignore not deleted files (whatapp and my personnal photo are quite huge, more than 4000 photos).
also I'm surprised not to find a lot of thumbnail because there should be a lot of thumbnail on my phone and also a lot of deleted thumbnail.
I have the date and name of deleted photo isn't there a clever tool that exist and could find them ?
using tool like diskdigger or undeleter that need root access, I don't find stuff, even when looking in a lot of volume. What I'm missing ?
My dream tool :
look for really deleted file
if there are real file : filter by folder, by filename, date, etc.
do you have some tips for me ?
If you have rooted your phone and used several Android recovery tools, but none of them have scanned your lost photos. It is possible that they have been overwritten by new files. The overwritten files cannot be recovered.
That's what happens when you MOVE a file from one drive ( internal sdcard ) to another drive ( external sdcard ):
The file contents are copied in full to some location on the target disk drive.
The directory of the target folder on the target drive is updated to include the new file copied.
The directory of the source folder where the file used to reside is updated to no longer list the file. This causes the actual data for that file on the source drive to be released and marked as unused space.

Categories

Resources