Current Folder Browser - no files showing up
38 次查看(过去 30 天)
显示 更早的评论
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 个评论
Thomas
2016-9-9
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
2016-9-10
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.
回答(3 个)
Zhirong
2017-1-9
编辑:Zhirong
2017-1-9
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 个评论
Samantha
2023-3-24
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
2017-10-25
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 个评论
Image Analyst
2015-11-25
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?
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 File Operations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!