allow urlPathForFiles and paths.public to be null