mirror of
https://github.com/MaSzyna-EU07/StarterNG.git
synced 2026-11-25 01:19:13 +01:00
Look at each source file of a scenery once
The watch of scenery files asked three times per file, whether it is there, its time and its size, every two seconds for every source of every scenery. One look gives all three.
This commit is contained in:
@@ -55,6 +55,9 @@ public interface IFileSystem
|
||||
|
||||
long GetFileSize(string path);
|
||||
|
||||
/// <summary>A file's time and size in one look; null when there is no file.</summary>
|
||||
(DateTime LastWriteUtc, long Size)? LastWriteAndSize(string path);
|
||||
|
||||
bool IsExecutable(string path);
|
||||
|
||||
/// <summary>Where the symbolic link at <paramref name="path"/> points, or null for anything else.</summary>
|
||||
|
||||
Reference in New Issue
Block a user