フィルターのクリア

Current Folder Browser - no files showing up

19 ビュー (過去 30 日間)
Greg
Greg 2015 年 11 月 25 日
コメント済み: Arvi 2023 年 10 月 17 日
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
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
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
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
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.
Arvi
Arvi 2023 年 10 月 17 日
THANK YOU SO MUCH. This saved me

サインインしてコメントする。


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

Image Analyst
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?
  1 件のコメント
Greg
Greg 2015 年 11 月 25 日
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.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeFile Operations についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by