From 1610328606d0f609e491bf935517cc8798c1fb2a Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Tue, 27 Jun 2023 23:53:08 -0700 Subject: v73 was too large, removing examples, .vscignore --- extension/examples/filesystem/filesystem.py | 45 ----------------------------- 1 file changed, 45 deletions(-) delete mode 100644 extension/examples/filesystem/filesystem.py (limited to 'extension/examples/filesystem/filesystem.py') 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 -- cgit v1.2.3-70-g09d2