Skip to content

Commit

Permalink
Absolute instead of resolve to avoid symlink issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
TheChymera committed Dec 22, 2022
1 parent 40d55f1 commit 2befd3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dandi/files/bids.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def bids_root(self) -> Path:
"""
The directory on the filesystem in which the BIDS dataset is located
"""
return self.filepath.parent.resolve()
return self.filepath.parent.absolute()

def _validate(self) -> None:
with self._lock:
Expand Down Expand Up @@ -196,7 +196,7 @@ def bids_path(self) -> str:
"""
``/``-separated path to the asset from the root of the BIDS dataset
"""
return self.filepath.resolve().relative_to(self.bids_root).as_posix()
return self.filepath.absolute().relative_to(self.bids_root).as_posix()

def get_validation_errors(
self,
Expand Down

0 comments on commit 2befd3a

Please sign in to comment.