You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For file handles, we can get the last modified time by calling FileSystemFileHandle.getFile().lastModifiedTime. This is not currently possible for directories.
A potential solution would be the addition of a stat() method for both file and directories handles. This would be helpful for multi-file editors like IDEs, which need to poll for changes. For example:
letoldTime=awaitdirHandle.stats().lastModifiedTime;setInterval(async()=>{conststats=awaitdirHandle.stats();if(oldTime<stats.lastModifiedTime){oldTime=stats.lastModifiedTime;// infer changes and do stuff...}},1000);
The text was updated successfully, but these errors were encountered:
For file handles, we can get the last modified time by calling
FileSystemFileHandle.getFile().lastModifiedTime
. This is not currently possible for directories.A potential solution would be the addition of a
stat()
method for both file and directories handles. This would be helpful for multi-file editors like IDEs, which need to poll for changes. For example:The text was updated successfully, but these errors were encountered: