Skip to content

Commit

Permalink
Replace os.path with fs.path in fsmanager.py
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulKGrimes authored and timkpaine committed Dec 5, 2022
1 parent 3f535ad commit 8955e05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jupyterfs/fsmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from fs import errors, open_fs
from fs.base import FS
import mimetypes
import os.path
import fs.path
from tornado import web

import nbformat
Expand Down Expand Up @@ -239,7 +239,7 @@ def _dir_model(self, path, content=True):
if content:
model["content"] = contents = []
for name in self._pyfilesystem_instance.listdir(path):
os_path = os.path.join(path, name)
os_path = fs.path.join(path, name)
if (
not self._pyfilesystem_instance.islink(os_path)
and not self._pyfilesystem_instance.isfile(os_path)
Expand Down

0 comments on commit 8955e05

Please sign in to comment.