aboutsummaryrefslogtreecommitdiffstats
path: root/util/system/fstat.h
diff options
context:
space:
mode:
authorspreis <spreis@yandex-team.com>2023-11-15 08:17:16 +0300
committerspreis <spreis@yandex-team.com>2023-11-15 08:42:52 +0300
commit1738956637b0691f2a1a9f9c25f8ad4657e89ebb (patch)
tree64c1a24b5ddd6a4c8b2ae1814227097e9f5bfcc2 /util/system/fstat.h
parentffd9cf091c04dec2930091cd731d6c47b0286cd9 (diff)
downloadydb-1738956637b0691f2a1a9f9c25f8ad4657e89ebb.tar.gz
Add construction of TFileStat from struct stat
Diffstat (limited to 'util/system/fstat.h')
-rw-r--r--util/system/fstat.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/util/system/fstat.h b/util/system/fstat.h
index 64e79e1b55..b487146e36 100644
--- a/util/system/fstat.h
+++ b/util/system/fstat.h
@@ -5,6 +5,7 @@
class TFile;
class TFsPath;
+struct stat;
struct TFileStat {
ui32 Mode = 0; /* protection */
@@ -29,6 +30,7 @@ public:
bool IsDir() const noexcept;
bool IsSymlink() const noexcept;
+ explicit TFileStat(const struct stat& fs);
explicit TFileStat(const TFile& f);
explicit TFileStat(FHANDLE f);
TFileStat(const TFsPath& fileName, bool nofollow = false);