Skip to content

Commit

Permalink
Make LightningLocalFileSystem protected
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanwharris committed Apr 6, 2021
1 parent 252ef26 commit 401c344
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pytorch_lightning/utilities/cloud_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import torch


class LightningLocalFileSystem(LocalFileSystem):
class _LightningLocalFileSystem(LocalFileSystem):
"""Extension of ``fsspec.implementations.local.LocalFileSystem`` where ``LightningLocalFileSystem.isdir`` behaves
the same as ``os.isdir``.
Expand Down Expand Up @@ -53,7 +53,7 @@ def get_filesystem(path: Union[str, Path]):
return fsspec.filesystem(path.split(":", 1)[0])
else:
# use local filesystem
return LightningLocalFileSystem()
return _LightningLocalFileSystem()


def atomic_save(checkpoint, filepath: str):
Expand Down

0 comments on commit 401c344

Please sign in to comment.