-
Notifications
You must be signed in to change notification settings - Fork 117
Support for Windows Long Paths #398
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -60,12 +60,45 @@ class LocalFileSystem : public FileSystem { | |||||
| Status MakeTemporaryDirectory( | ||||||
| std::string dir_path, std::string* temp_dir) override; | ||||||
| Status DeletePath(const std::string& path) override; | ||||||
|
|
||||||
| private: | ||||||
| inline std::string getOSValidPath(const std::string& _path); | ||||||
| const char* kWindowsLongPathPrefix = "\\\\?\\"; | ||||||
|
||||||
| const char* kWindowsLongPathPrefix = "\\\\?\\"; | |
| const char* windows_long_path_prefix_ = "\\\\?\\"; |
To match Triton member variable convention.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But that's a constant, not a variable? AFAIK, constants should be named like the former, not the latter.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might be more idiomatic to use static constexpr char* kWindowsLongPathPrefix = "\\\\?\\"; to drive the fact this is, indeed, a constant.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| LocalFileSystem::getOSValidPath(const std::string& _path) | |
| LocalFileSystem::getOSValidPath(const std::string& path) |
Cascading effect where the local path variable will need to change to something like local_path or l_path
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To match triton syntax conventions