![]() |
|
|
#1 (permalink) |
|
Member
Join Date: Dec 2012
Posts: 3
|
Is there any apps or commands to print a listing of files in a folder??
I want to make a list of my mp3 files to compare and correct. This would seem to be a simple task but I can't find anything for Android! Please help!!!! |
|
|
|
|
|
#3 (permalink) |
|
Member
Join Date: Dec 2012
Posts: 3
|
Thanks for the suggestion, but that's not what I am looking for. Just want a printout of file names that are in a particular folder so I can examine and make notes on.
Surely there IS an app or command for the Android system that will let me make what should be a simple task. Is this really that hard to do?????? |
|
|
|
|
|
#4 (permalink) |
|
Super Moderator
Join Date: Jul 2008
Location: India
Posts: 15,275
|
Hi, welcome to the forum
.I tried to look for an app on Play Store which will work like a directory printer, but there doesn't appear to be one. Neither did I find this feature in a file manager that I use. I use FX File Explorer: https://play.google.com/store/apps/d...pp.fx&hl=en_IN But, there is a way to make a list of the files inside a directory. Here's how. Download Terminal Emulator for Android: https://play.google.com/store/apps/d...roidterm&hl=en Using this, you can use commands to do what you want to achieve. When you run Terminal Emulator, by default it will take you to the root directory (a system folder), where you won't be able to issue commands. So, you will have to change to the directory you want to, by command. By using Fx File Explorer on my Android phone, I was able to know the exact path of a particular directory, by being in that directory, and by using the information which the file manager provides. Which file manager do you use? Depending on what you use, you will have to find that path to the folder. So, you have to type this command to change to that directory. On my Android the SD card has this path: /storage/emulated/0 So, to go the SD card, I will type this: cd /storage/emulated/0/ where CD is the command to change directory, and the path to the directory follows it. So using this command, you can change directories, and get to the directory you want. I had to type the whole path, because I was in the root directory (/). When I reached the SD card, then I can just type a directory name to change to it. Like, if I have a folder named Music on SD card, I will type: cd Music Or, you could have typed the whole path in one go: cd /storage/emulated/0/Music To list the folder contents, use "ls" command. So, you will have to type: ls This will list the files/folders in that directory. To save the list to a text file, please type: ls > filename.txt This will save the list to a text file of your choice (here filename). Please ask if you have any questions. Hope this helps.
__________________
Anupam |
|
|
|
|
|
#6 (permalink) |
|
Super Moderator
Join Date: Jul 2008
Location: India
Posts: 15,275
|
I think you are trying to create the text file in the path shown in the error message. You are doing something wrong.
Did you find out the path of your SD card? You will first have to change directory to that. Then, from there you will have to change your directory to your music folder. You can write the command: pwd which will tell you which directory you are in. pwd stands for Present Working Directory. cd is short for Change Directory. ls is short for list. By default, your present working directory will be the system directory where you won't be able to create any file. You will have to change directory to your music folder properly first. Just do a pwd or ls to check which directory you are presently in, or if you can see the folder contents, which should be there in that directory.
__________________
Anupam |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|