It is possible to avoid folders (and files) auto creation? Unexpectedly, YES. - General Topics

Dear friends,
for months I was struggling with the auto-created folders named LazyList and LOST.DIR
These are folders that are created automatically by the file system, but sometimes I have found, especially in the LOST.DIR folder, duplicated and previously deleted files, also big, very big ones.
Why a so great waste of storage?
So I wanted to get rid of that!
And after some "Guru meditations" I have found the trick to achieve it.
It is a very simple trick, that's related to the file system itself.
Since it is a rule that where there is a folder there cannot be a file with the same name, simply creating a file with a specified name will make it impossible, even to the system, to create a folder with the same name, and vice-versa.
So, if we want to get rid of the infamous folder LOST.DIR, simply delete it and create, a, even empty, file with the same name!
The file system will be forced to not create that folder, anymore!
Freedom to manage storage.
Man vs Filesystem: 1-0
Hope this will be useful to everyone that takes care of their storage

Uranya said:
Since it is a rule that where there is a folder there cannot be a file with the same name, simply creating a file with a specified name will make it impossible, even to the system, to create a folder with the same name, and vice-versa.
So, if we want to get rid of the infamous folder LOST.DIR, simply delete it and create, a, even empty, file with the same name!
The file system will be forced to not create that folder, anymore!
Click to expand...
Click to collapse
I must say I didn't believe it, so I tried to create a lost.dir folder and lost.dir file in the same directory on my computer.
And you were right!
Thanks for sharing!

Related

How to... copy/move files stored in a Smartphone ROM?

I can't copy or move files stored in device ROM.
I've tried with Resco Explorer and Total Commander, but without success.
I didn't understand if there's a registry hack that allows these operations.
I've notice (or so it seemed to me) that I was able to substitute/copy/move some files having the ROM attribute, but many others not (eg: I've tried to copy the nleddrvr_sec.dll, obviously without success, otherwise I'd post this here!).
Surfing in many forums, I read many others asking for the same thing, unfortunately I haven't seen answers to their question about this.
Hope someone explains to me how to do or why is impossible to do.
Mersì bo q.
Gubbài.
You can not copy / move / delete files in ROM. Thats the point of "Read Only Memory"
These files are not stored as individual files but are in fact packed in a special way as part of the device image which can only be written (flashed) by special tools.
If you want to extract OS files you need to use a ROM dump tool.
I suggest you look in the WiKi.
What you can do is overwrite one or more "ROM files". What will happen in reality is that a copy of the file with the same name will be placed in storage memory and the system will go there. If you hard reset your device or rename the file it will go back to the original file.
levenum said:
You can not copy / move / delete files in ROM. Thats the point of "Read Only Memory"
These files are not stored as individual files but are in fact packed in a special way as part of the device image which can only be written (flashed) by special tools.
If you want to extract OS files you need to use a ROM dump tool.
I suggest you look in the WiKi.
What you can do is overwrite one or more "ROM files". What will happen in reality is that a copy of the file with the same name will be placed in storage memory and the system will go there. If you hard reset your device or rename the file it will go back to the original file.
Click to expand...
Click to collapse
As you said here and here (Changing Files in Windows Dir )
it's impossible to move/copy ROM files, just overwrite 'em.
Doing so the system looking for these overwritten copies.
So now the question are:
- there's a registry entry that points to this substitute ROM files?
- to modify an existent file resident in ROM I MUST dump my ROM or another one same or similar?
Mersì bo q, anyway.
Gubbài.

[Q] Has this happened to anyone else?

i switched roms acouple times today and this has happened one other time.
All my video files not the folders or subtitles or anything just the video files themselves have been deleted.
Using brilliant corners and bottle o smoke and bam they are gone...
all you have to do is make a no media file. basically make a new text doc on your computer and just save it as ".nomedia" You do not have to write anything in the file. This will tell the tablet not to delete any files out of this folder. put this file in every folder that has media items. I hope this helps.
Hmmm...I've never had that happen to me, but thanks for the tip fosser2
It's a known issue and easily fixed with the .nomedia file. Beware though that windows won't let you create such a file. I think most android file managers will allow you to create a file and rename it ".nomedia".
brettdwagner said:
It's a known issue and easily fixed with the .nomedia file. Beware though that windows won't let you create such a file. I think most android file managers will allow you to create a file and rename it ".nomedia".
Click to expand...
Click to collapse
Use notepad++ to make files of this type in windoze...
Sent from my Droid using XDA App
Thanks guys ill do this next time I put movies on.
brettdwagner said:
It's a known issue and easily fixed with the .nomedia file. Beware though that windows won't let you create such a file. I think most android file managers will allow you to create a file and rename it ".nomedia".
Click to expand...
Click to collapse
You can easily make this file form windows. Right-click on any explorer window and choose New>Text file. Then just rename it to .nomedia instead of NewTextDocument.txt or whatever the default is.
Scratch that. Windows says "type a file name" or something. Just use notepad++ as someone else mentioned...

[Q] Writing a file back to a Marketplace apps Isolated Storage?

Hi All,
I've used Heathcliff's WP7RootTools 0.9 to extract a file from an installed apps IsolatedStorage. The app in question was installed from the Marketplace, but I want to modify some of the files it's saved to it's Isolated Storage.
I extracted the file I wanted to edit by using the Explorer utility in WP7RootTools to copy the file to the "My Documents" folder, and renamed the extension to docx. From there I could simply go into the Office Hub, where the file was now listed, and emailed the file to myself.
I have made the edits to the file, but now need to get the file back into the app's Isolated Storage. This is where I have now got a bit stuck
I've tried copying the file to SkyDrive, and using the Office Hub to download it from SkyDrive to my phone. The file downloaded and is cached on the phone somewhere, but the file location, according to Office is not "Phone". This is normal, as Skydrive downloaded documents are not saved to the "Phone" location until you open the document and do "Save as".
I cannot of course open the downloaded file, as it isn't really a .docx file. Files loacted in the "Phone" location show up in "My Documents" in the WP7RootTools explorer. SkyDrive downloaded documents I have no idea where they are located?
Can you guys help? Does anyone know the path to location of SkyDrive downloaded items on the phone. If so, then I can easily just use the WP7Roottools Explorer to copy the file back to the apps Isolated Storage.
Is there a better way to copy a non-Office file back onto the phone?
Regards,
Micro666
You could use one of these apps:
sh4d0w86 said:
i was going to suggest using WPV App Data Backup, but it seems i saved the Backups in the wrong location... (will fix in next release)
so,
you can use TouchXperience or WMDC Launcher.
Click to expand...
Click to collapse
I'm looking to do the exact same thing....
Options:
1. Do exactly what you've been doing, but save as .txt instead of .docx. The phone can still open this, even though its probably a binary file, and save it to the "Phone" location. Then you can copy it back and rename it.
2. Use an app that gives direct access to the phone's filesystem from the PC, like TouchXperience+WPDM, or Root Webserver (see my sig)+your favorite webbrowser.
3. Use any other way to get a file onto the phone, such as emailing it to yourself, using IsolatedStorageexplorer, or putting it in a XAP files and installing that file. Then move the file with WP7 Root Tools.
I recommend approach #2.
GoodDayToDie said:
Options:
1. Do exactly what you've been doing, but save as .txt instead of .docx. The phone can still open this, even though its probably a binary file, and save it to the "Phone" location. Then you can copy it back and rename it.
2. Use an app that gives direct access to the phone's filesystem from the PC, like TouchXperience+WPDM, or Root Webserver (see my sig)+your favorite webbrowser.
3. Use any other way to get a file onto the phone, such as emailing it to yourself, using IsolatedStorageexplorer, or putting it in a XAP files and installing that file. Then move the file with WP7 Root Tools.
I recommend approach #2.
Click to expand...
Click to collapse
I used TouchExperience.
1.On my Fully unlocked Device(I assume you can do this with root tools), I installed a file manager that gives full access to the device.
http://forum.xda-developers.com/showpost.php?p=24636416&postcount=23
2. I installed TouchEperience on my PC. After giving the WP7 app, Root tools rights, it should show most of the file system(on the PC) but, not all of it. So I created a new folder in \Windows (temp).
3. On the Phone, I hunted down the file I was looking for from Isolated Storage, I copied it to the \windows\temp folder.
4. Used the PC TouchExperience and browsed to \Windows\temp, there was my files, I copied them to my PC. USed the File Explorer to delete the files in my \temp folder(to make sure they were gone).
5. I edited the files, copied them back to \Windows\Temp on my device via TouchExperience on the PC. Then used the file explorer to copy them back to the Isolated Storage.
Note: The file explorer I posted a link to is GREAT, it can even edit files (basic text editor) in Isolated storage. I found a way to Cheat on a marketplace Xbox live game (didn't try others), right before the achivements, so they were really easy to get
I'm sure there is easier methods but, this worked for me...
Can I ask, what app did you try this on ?
Hope this helped...
FYI DavidinCT: Cheating XBL games is very risky. Microsoft often can detect it (for example, if you get one achievement that would have required getting another first) and they can and will permanently ban your Xbox Live account for doing so.
That all said... why didn't you just use WPDM (on the PC) to copy the file straight to the IsoStore of the app? So much easier...
GoodDayToDie said:
FYI DavidinCT: Cheating XBL games is very risky. Microsoft often can detect it (for example, if you get one achievement that would have required getting another first) and they can and will permanently ban your Xbox Live account for doing so.
That all said... why didn't you just use WPDM (on the PC) to copy the file straight to the IsoStore of the app? So much easier...
Click to expand...
Click to collapse
To be honest, I only did it with a game that had an error when I got so far, so the final achivements of the game. A Game with a Known issue but, no fix.
And I just really wanted to see if I COULD do it...
I used WPDM but, the PC version even with my phone fully unlocked (custom rom on my VZW HTC Trophy) and using Root tools 0.9 to give full to TouchExperince root, would not see all the folders and would not see the IsoStore. SO I had to copy the files to a folder that WMDM could see.
Personally, the new File Explorer above is awsome, it's even got a editor in it, I didn't even need to go through all that......

[Completed] How do I protect some specific files in the root directory from being deleted?

I have some files in /data/data/com.something that are again and again deleted or rather overwritten by a program every time I run it. I'd really love a way to delete protect those files of mine.
Points:
I know that the files are overwritten because they are read only files so the only logical explanation is that they are first deleted and then replaced with a new file.
The files should be prevented from being deleted or edited but I also want that the data still be executable and viewable.
The files are in .XML format.
The name of the files and their current location should not change.
Last but not the least, this change should be reversible.
Can any human being help me achieve this or is this something that only the almighty can do?
Evan Jongske Sangma said:
I have some files in /data/data/com.something that are again and again deleted or rather overwritten by a program every time I run it. I'd really love a way to delete protect those files of mine.
Points:
I know that the files are overwritten because they are read only files so the only logical explanation is that they are first deleted and then replaced with a new file.
The files should be prevented from being deleted or edited but I also want that the data still be executable and viewable.
The files are in .XML format.
The name of the files and their current location should not change.
Last but not the least, this change should be reversible.
Can any human being help me achieve this or is this something that only the almighty can do?
Click to expand...
Click to collapse
Greetings and welcome to assist. If the files are in data then they can be overwritten if they are in system/root then they could only be ovewritten by a root application.
Hope this helps
Good Luck
Sawdoctor

File system logic to avoid files and folders creation

Dear friends,
this is a little trick I have used a couple years ago that I want to share with you.
The logic of any file system makes impossible to have, in the same folder, a file and a folder having the same name.
Thus I have used this rule to avoid the creation of folders and files I don't want on my device.
How?
That's very simple:
To avoid the creation of a file such as Lazylist I have created a folder called Lazylist
To avoid the creation of a folder such as LOST.DIR I have created a file called LOST.DIR
Hope this will help you fighting bugs!
Lots of Love.

Categories

Resources