Current Folder Browser - no files showing up
38 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
This is hopefully a simple question. I don't normally work with the Current Folder Browser (accessed with >> filebrowser) but I recently tried using it to help with Git source control, as outlined here http://blogs.mathworks.com/community/2014/10/20/matlab-and-git/.
Unfortunately the Current Folder Browser is not showing any files, even though typing '>> ls' in the command window shows that there are multiple files in the current directory. Does anyone know what's going on? Why would the Current Folder Browser be blank? How do I get the Current Folder Browser to show files?
Fix: I restarted Matlab and that seems to have fixed it. Not sure what the original problem was.
2 commentaires
Thomas
le 9 Sep 2016
I am having this same problem, independently of Git.
The box with the current folder path shows the spinny icon.
The commands 'cd' in the command window works. The command 'dir' will show all files in the directory. But 'dir filename' does not find the file, even when it exists.
If I try to open a file to edit from within the editor, I am able to navigate and open the file.
2015b
Image Analyst
le 10 Sep 2016
Your filename does not exist. You either don't have the filename correct, like you're missing the folder or extension or misspelled it, or the file is not in the current folder or something. But if you specified the filename correctly (folder + basefilename + extension) and it's not hidden, then dir() will find it. If you don't think so, attach screenshots to prove it in a new question that you yourself start.
Réponses (3)
Zhirong
le 9 Jan 2017
Modifié(e) : Zhirong
le 9 Jan 2017
Hi, I run into an exact issue as yours. As seen in the picture, the current folder contains several files which are displayed as results returned by using "dir"; however, it's totally blank on the left panel.
Note that it is always the case no matter which folder I open.
Thanks for your help.
2 commentaires
Samantha
le 24 Mar 2023
Hi, realise this is an old post. But I had the same problem. I clicked on the folder above with the green down facing arrow above the current folder window. This allows you to browse for folder. I then browsed to select the folder of the selected pathway and the files appeared in the window. Don't know if they will return when I close MatLab. Hope this may help.
Semion Belau
le 25 Oct 2017
You could try clicking the downwards-pointing arrow to the right of "Current Folder", followed by "Group By" from the menu, and finally selecting "Type".
0 commentaires
Image Analyst
le 25 Nov 2015
I don't really know since I haven't run it, but if it's like uigetdir(), it won't show individual files on the theory that having them there might confuse you and let/make you think you're supposed to choose a file. But you're not supposed to choose a file, just a folder, so it only shows you folders, not files. Would that explain it?
Voir également
Catégories
En savoir plus sur File Operations dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!