diff options
Diffstat (limited to 'lib/Support')
| -rw-r--r-- | lib/Support/Unix/Path.inc | 1 | ||||
| -rw-r--r-- | lib/Support/Windows/Path.inc | 7 |
2 files changed, 0 insertions, 8 deletions
diff --git a/lib/Support/Unix/Path.inc b/lib/Support/Unix/Path.inc index 57f02be..02f2fb1 100644 --- a/lib/Support/Unix/Path.inc +++ b/lib/Support/Unix/Path.inc @@ -374,7 +374,6 @@ PathWithStatus::getFileStatus(bool update, std::string *ErrStr) const { status.mode = buf.st_mode; status.user = buf.st_uid; status.group = buf.st_gid; - status.uniqueID = uint64_t(buf.st_ino); status.isDir = S_ISDIR(buf.st_mode); status.isFile = S_ISREG(buf.st_mode); fsIsValid = true; diff --git a/lib/Support/Windows/Path.inc b/lib/Support/Windows/Path.inc index 4a6e563..1e453d0 100644 --- a/lib/Support/Windows/Path.inc +++ b/lib/Support/Windows/Path.inc @@ -290,13 +290,6 @@ PathWithStatus::getFileStatus(bool update, std::string *ErrStr) const { status.user = 9999; // Not applicable to Windows, so... status.group = 9999; // Not applicable to Windows, so... - // FIXME: this is only unique if the file is accessed by the same file path. - // How do we do this for C:\dir\file and ..\dir\file ? Unix has inode - // numbers, but the concept doesn't exist in Windows. - status.uniqueID = 0; - for (unsigned i = 0; i < path.length(); ++i) - status.uniqueID += path[i]; - ULARGE_INTEGER ui; ui.LowPart = fi.ftLastWriteTime.dwLowDateTime; ui.HighPart = fi.ftLastWriteTime.dwHighDateTime; |
