diff options
| author | jsmall-nvidia <jsmall@nvidia.com> | 2021-04-20 14:04:31 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-20 14:04:31 -0400 |
| commit | 6bba674f9d732eccc27dcf004611e6a8eb9bc14e (patch) | |
| tree | e78757692346c19e614df35330a41134c2c67758 /source/core/slang-file-system.h | |
| parent | 778428fecc0548af565e92745cf1344bcf19367f (diff) | |
Small filesystem improvements (#1802)
* #include an absolute path didn't work - because paths were taken to always be relative.
* Small improvements around uniqueIdentify and CacheFileSystem
Diffstat (limited to 'source/core/slang-file-system.h')
| -rw-r--r-- | source/core/slang-file-system.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/core/slang-file-system.h b/source/core/slang-file-system.h index 1a27ddc83..8a9cfb811 100644 --- a/source/core/slang-file-system.h +++ b/source/core/slang-file-system.h @@ -176,7 +176,9 @@ class CacheFileSystem: public ISlangFileSystemExt, public RefObject protected: - /// Given a path, works out a uniqueIdentity, based on the uniqueIdentityMode. outFileContents will be set if file had to be read to produce the uniqueIdentity (ie with Hash) + /// Given a path, works out a uniqueIdentity, based on the uniqueIdentityMode. + /// outFileContents will be set if file had to be read to produce the uniqueIdentity (ie with Hash) + /// If the file doesn't have to be read, then outFileContents will be nullptr, even if it is backed by a file. SlangResult _calcUniqueIdentity(const String& path, String& outUniqueIdentity, ComPtr<ISlangBlob>& outFileContents); /// For a given path gets a PathInfo. Can return nullptr, if it is not possible to create the PathInfo for some reason |
