Unseen file .MatlabDriveTag is seen

11 ビュー (過去 30 日間)
fengwuxiaoli
fengwuxiaoli 2022 年 1 月 11 日
コメント済み: haiping guo 2023 年 10 月 30 日
Normally, the file ".MatlabDriveTag" is unseen in windows explorer. However, in some circumstances, the file can be seen. For example, in the zip file if I compress whole folder into one file, or in git bash. It is annoying sometime because this file does exist in every folder and subfolders and cannot be easily deleted. I don't know why this file exists, and can I disable it?
  3 件のコメント
fengwuxiaoli
fengwuxiaoli 2022 年 1 月 17 日
Thanks. I think it is different to my concern.
Walter Roberson
Walter Roberson 2022 年 1 月 17 日
Notice the part
"MATLAB Drive automatically adds a '.MATLABDriveTag' file in any folder that is created on drive as this helps to track and sync files to the cloud."
which answers the question about why they exist.

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

採用された回答

Pratyush Roy
Pratyush Roy 2022 年 1 月 17 日
Hi Ryan,
The MATLABDriveTag files allow us to track offline folder moves meaning we can reconstruct folder operations that occurred when MATLAB Drive sync wasn't running.
OneDrive also has hidden files (UUID filename) located at the root folder, and dropbox has cache files stored at the root so there is precedent for these sorts of hidden files.
The MATLAB Drive tag files are hidden and for the most part not user visible (on Windows users have to uncheck "hide system protected files" in their explorer options to view).
These of course can become visible to users running git workflows. The files are harmless, and can be simply added to the .gitignore file.
However this issue has been brought to the concerned people and they might consider it for a future release.
Hope this helps!
  3 件のコメント
Martin
Martin 2023 年 7 月 12 日
One of the Problems is, that the MATLAB Online does not seem to work properly anymore when the .MATLABDriveTag is added to the project .gitignore.
We got around this specific problem by adding it to the global .gitignore list.
Then we get however the next problem, that using MatlabProject will add the .MATLABDriveTag to the project, which then results in a problem when trying to open a clone on a non-MATLABDrive folder...
+1 to fixing this in a future release!
haiping guo
haiping guo 2023 年 10 月 30 日
+1 to fixing this in a future release!

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMATLAB Compiler についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by