parent
fec7c87ff3
commit
125088449a
|
@ -1068,7 +1068,7 @@ class Config(object):
|
|||
"""Check if the path is valid for access from outside."""
|
||||
assert path is not None
|
||||
|
||||
parent = pathlib.Path(path).parent
|
||||
parent = pathlib.Path(path)
|
||||
try:
|
||||
parent = parent.resolve() # pylint: disable=no-member
|
||||
except (FileNotFoundError, RuntimeError, PermissionError):
|
||||
|
|
|
@ -809,6 +809,7 @@ class TestConfig(unittest.TestCase):
|
|||
|
||||
valid = [
|
||||
test_file,
|
||||
tmp_dir
|
||||
]
|
||||
for path in valid:
|
||||
assert self.config.is_allowed_path(path)
|
||||
|
|
Loading…
Reference in New Issue