Assert that value is a valid file path and brand it as FilePath.
value
The string to validate and brand.
The same string branded as a FilePath.
Error if value does not match FILE_PATH_REGEX.
Assert that
valueis a valid file path and brand it as FilePath.