Some Filesystem methods work on path strings in a lexical manner, without regard to any actual filesystem object. These methods don't require a Filesystem object to be instantiated first. As such, they have been made static.
Making these methods static makes it easier to extract helper lambdas in the unit test code. This is useful since changing paths to use std::filesystem::path instead of std::string require some updates to the tests using these checks, so centralizing the checks makes the update easier.
Some
Filesystem
methods work on path strings in a lexical manner, without regard to any actual filesystem object. These methods don't require aFilesystem
object to be instantiated first. As such, they have been madestatic
.Making these methods
static
makes it easier to extract helper lambdas in the unit test code. This is useful since changing paths to usestd::filesystem::path
instead ofstd::string
require some updates to the tests using these checks, so centralizing the checks makes the update easier.Reference: #973