MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   资料存档 (https://www.labfans.com/bbs/forumdisplay.php?f=72)
-   -   在Matlab中处理符号链接? (https://www.labfans.com/bbs/showthread.php?t=22455)

poster 2019-12-06 07:47

在Matlab中处理符号链接?
 
Matlab函数exist()和dir()似乎忽略了符号链接。你能告诉我如何找出一个符号链接吗?

>> exist('./path/to/symlink', 'file') ans = 0 >> size(dir('./path/to/symlink'),1) ans = 0 编辑:问题实际上比仅仅检查是否存在还差。通常的功能甚至都无法遵循符号链接来打开文件。例如,尝试使用dlmread()返回“没有这样的文件或目录”错误。

编辑:现在我无法重现该问题。一定是某种用户错误。



[url=https://stackoverflow.com/q/13791228]更多&回答...[/url]


所有时间均为北京时间。现在的时间是 23:44

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.