diff options
author | danila-eremin <danila-eremin@yandex-team.ru> | 2022-02-10 16:46:21 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:21 +0300 |
commit | 9d80afb43be16931e653a688c5e0f585101ff4f8 (patch) | |
tree | 1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /util/folder/path.pxd | |
parent | 358e631d1a69242d3ae4d6e6b1e4f7581d03133b (diff) | |
download | ydb-9d80afb43be16931e653a688c5e0f585101ff4f8.tar.gz |
Restoring authorship annotation for <danila-eremin@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/folder/path.pxd')
-rw-r--r-- | util/folder/path.pxd | 186 |
1 files changed, 93 insertions, 93 deletions
diff --git a/util/folder/path.pxd b/util/folder/path.pxd index 9a60cd8874..85af10d746 100644 --- a/util/folder/path.pxd +++ b/util/folder/path.pxd @@ -1,93 +1,93 @@ -from util.generic.string cimport TString, TStringBuf -from util.generic.vector cimport TVector - - -# NOTE (danila-eremin) Currently not possible to use `const` and `except +` at the same time, so some function not marked const -cdef extern from "util/folder/path.h" nogil: - cdef cppclass TFsPath: - TFsPath() except + - TFsPath(const TString&) except + - TFsPath(const TStringBuf) except + - TFsPath(const char*) except + - - void CheckDefined() except + - - bint IsDefined() const - bint operator bool() const - - const char* c_str() const - - bint operator==(const TFsPath&) const - bint operator!=(const TFsPath&) const - - # NOTE (danila-eremin) operator `/=` Not supported - # TFsPath& operator/=(const TFsPath&) const - - TFsPath operator/(const TFsPath&, const TFsPath&) except + - - # NOTE (danila-eremin) TPathSplit needed - # const TPathSplit& PathSplit() const - - TFsPath& Fix() except + - - const TString& GetPath() const - TString GetName() const - - TString GetExtension() const - - bint IsAbsolute() const - bint IsRelative() const - - bint IsSubpathOf(const TFsPath&) const - bint IsNonStrictSubpathOf(const TFsPath&) const - bint IsContainerOf(const TFsPath&) const - - TFsPath RelativeTo(const TFsPath&) except + - TFsPath RelativePath(const TFsPath&) except + - - TFsPath Parent() const - - TString Basename() const - TString Dirname() const - - TFsPath Child(const TString&) except + - - void MkDir() except + - void MkDir(const int) except + - void MkDirs() except + - void MkDirs(const int) except + - - void List(TVector[TFsPath]&) except + - void ListNames(TVector[TString]&) except + - - bint Contains(const TString&) const - - void DeleteIfExists() except + - void ForceDelete() except + - - # NOTE (danila-eremin) TFileStat needed - # bint Stat(TFileStat&) const - - bint Exists() const - bint IsDirectory() const - bint IsFile() const - bint IsSymlink() const - void CheckExists() except + - - void RenameTo(const TString&) except + - void RenameTo(const char*) except + - void RenameTo(const TFsPath&) except + - void ForceRenameTo(const TString&) except + - - void CopyTo(const TString&, bint) except + - - void Touch() except + - - TFsPath RealPath() except + - TFsPath RealLocation() except + - TFsPath ReadLink() except + - - @staticmethod - TFsPath Cwd() except + - - void Swap(TFsPath&) +from util.generic.string cimport TString, TStringBuf +from util.generic.vector cimport TVector + + +# NOTE (danila-eremin) Currently not possible to use `const` and `except +` at the same time, so some function not marked const +cdef extern from "util/folder/path.h" nogil: + cdef cppclass TFsPath: + TFsPath() except + + TFsPath(const TString&) except + + TFsPath(const TStringBuf) except + + TFsPath(const char*) except + + + void CheckDefined() except + + + bint IsDefined() const + bint operator bool() const + + const char* c_str() const + + bint operator==(const TFsPath&) const + bint operator!=(const TFsPath&) const + + # NOTE (danila-eremin) operator `/=` Not supported + # TFsPath& operator/=(const TFsPath&) const + + TFsPath operator/(const TFsPath&, const TFsPath&) except + + + # NOTE (danila-eremin) TPathSplit needed + # const TPathSplit& PathSplit() const + + TFsPath& Fix() except + + + const TString& GetPath() const + TString GetName() const + + TString GetExtension() const + + bint IsAbsolute() const + bint IsRelative() const + + bint IsSubpathOf(const TFsPath&) const + bint IsNonStrictSubpathOf(const TFsPath&) const + bint IsContainerOf(const TFsPath&) const + + TFsPath RelativeTo(const TFsPath&) except + + TFsPath RelativePath(const TFsPath&) except + + + TFsPath Parent() const + + TString Basename() const + TString Dirname() const + + TFsPath Child(const TString&) except + + + void MkDir() except + + void MkDir(const int) except + + void MkDirs() except + + void MkDirs(const int) except + + + void List(TVector[TFsPath]&) except + + void ListNames(TVector[TString]&) except + + + bint Contains(const TString&) const + + void DeleteIfExists() except + + void ForceDelete() except + + + # NOTE (danila-eremin) TFileStat needed + # bint Stat(TFileStat&) const + + bint Exists() const + bint IsDirectory() const + bint IsFile() const + bint IsSymlink() const + void CheckExists() except + + + void RenameTo(const TString&) except + + void RenameTo(const char*) except + + void RenameTo(const TFsPath&) except + + void ForceRenameTo(const TString&) except + + + void CopyTo(const TString&, bint) except + + + void Touch() except + + + TFsPath RealPath() except + + TFsPath RealLocation() except + + TFsPath ReadLink() except + + + @staticmethod + TFsPath Cwd() except + + + void Swap(TFsPath&) |