summaryrefslogtreecommitdiff
path: root/extension/examples/filesystem/filesystem.py
diff options
context:
space:
mode:
authorNate Sesti <sestinj@gmail.com>2023-06-27 23:53:08 -0700
committerNate Sesti <sestinj@gmail.com>2023-06-27 23:53:08 -0700
commit4411dc39c1ec51bfc96c4059aa555313e825c2f7 (patch)
treef88425c9c5b407d53cc49645e13ebbb52c9fb455 /extension/examples/filesystem/filesystem.py
parent55e231b4f51f47757ab5840363fbc097d6ebf6e5 (diff)
downloadsncontinue-4411dc39c1ec51bfc96c4059aa555313e825c2f7.tar.gz
sncontinue-4411dc39c1ec51bfc96c4059aa555313e825c2f7.tar.bz2
sncontinue-4411dc39c1ec51bfc96c4059aa555313e825c2f7.zip
v73 was too large, removing examples, .vscignore
Diffstat (limited to 'extension/examples/filesystem/filesystem.py')
-rw-r--r--extension/examples/filesystem/filesystem.py45
1 files changed, 0 insertions, 45 deletions
diff --git a/extension/examples/filesystem/filesystem.py b/extension/examples/filesystem/filesystem.py
deleted file mode 100644
index eb5c2043..00000000
--- a/extension/examples/filesystem/filesystem.py
+++ /dev/null
@@ -1,45 +0,0 @@
-from abc import ABC, abstractmethod
-from typing import List
-
-
-class FileSystem(ABC):
- """An abstract filesystem that can read/write from a set of files."""
- @abstractmethod
- def read(self, path) -> str:
- raise NotImplementedError
-
- @abstractmethod
- def readlines(self, path) -> List[str]:
- raise NotImplementedError
-
- @abstractmethod
- def write(self, path, content):
- raise NotImplementedError
-
- @abstractmethod
- def exists(self, path) -> bool:
- raise NotImplementedError
-
- @abstractmethod
- def rename_file(self, filepath: str, new_filepath: str):
- raise NotImplementedError
-
- @abstractmethod
- def walk(self, path: str) -> List[str]:
- raise NotImplementedError
-
- @abstractmethod
- def rename_directory(self, path: str, new_path: str):
- raise NotImplementedError
-
- @abstractmethod
- def delete_file(self, filepath: str):
- raise NotImplementedError
-
- @abstractmethod
- def delete_directory(self, path: str):
- raise NotImplementedError
-
- @abstractmethod
- def add_directory(self, path: str):
- raise NotImplementedError