Borrar filtros
Borrar filtros

Current Folder Browser - no files showing up

19 visualizaciones (últimos 30 días)
Greg
Greg el 25 de Nov. de 2015
Comentada: Arvi el 17 de Oct. de 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 comentarios
Thomas
Thomas el 9 de Sept. de 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 el 10 de Sept. de 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.

Iniciar sesión para comentar.

Respuestas (3)

Zhirong
Zhirong el 9 de En. de 2017
Editada: Zhirong el 9 de En. de 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 comentarios
Samantha
Samantha el 24 de Mzo. de 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 el 17 de Oct. de 2023
THANK YOU SO MUCH. This saved me

Iniciar sesión para comentar.


Semion Belau
Semion Belau el 25 de Oct. de 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 el 25 de Nov. de 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 comentario
Greg
Greg el 25 de Nov. de 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.

Iniciar sesión para comentar.

Categorías

Más información sobre File Operations en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by