Why does the timestamp on the directory saved on a network drive differ from the system time?

1 次查看(过去 30 天)
The timestamp of files written onto a network drive do not match my system time.
For example
a = rand(100);
datestr(now),tic,save temp,toc,d=dir('temp.mat');

采纳的回答

MathWorks Support Team
When the file temp.mat is stored onto a network drive, the timestamp shown at the command prompt might not match the system time.
The discrepancy in the timestamps when saving to the network drive might be because of the limitations on the Change Notification Handles (CNHs) in Windows. MATLAB generally caches on the information that could be stored on the network drive. The changes to the directory are communicated through the Change Notification Handles. These CNHs work well on local disk. However, when using network file systems (specifically, Windows NT file systems) limitations in the file system and Windows NT limit the amount of CNH's we can use. When CNH's run out, one is unable to reliably see changes in network directories.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by