Current Folder Browser - no files showing up

27 views (last 30 days)
Greg
Greg on 25 Nov 2015
Commented: Arvi on 17 Oct 2023
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 Comments
Thomas
Thomas on 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
Image Analyst on 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.

Sign in to comment.

Answers (3)

Zhirong
Zhirong on 9 Jan 2017
Edited: Zhirong on 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 Comments
Samantha
Samantha on 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.
Arvi
Arvi on 17 Oct 2023
THANK YOU SO MUCH. This saved me

Sign in to comment.


Semion Belau
Semion Belau on 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".

Image Analyst
Image Analyst on 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?
  1 Comment
Greg
Greg on 25 Nov 2015
Going from this page about setting up Git http://blogs.mathworks.com/community/2014/10/20/matlab-and-git/ I don't think that's the answer.
But I tried restarting Matlab and that seems to have fixed it! Not sure what the original problem was.

Sign in to comment.

Categories

Find more on File Operations in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!