diff --git a/src/drive_handle.py b/src/drive_handle.py index 8862f4f91283eb6e02f9d91eaac11eee83b500de..cec44ec9e11527a999c2be0b55596c819a4cea25 100644 --- a/src/drive_handle.py +++ b/src/drive_handle.py @@ -51,15 +51,6 @@ class DriveHandle: self._MAX_RAM_ALLOCATION = max_memory * 1_024 * 1_024 # convert from MiB to B self._drive_letter = drive_letter - def get_free_drive_space(self) -> int: - """ - Determines the free usable disk space on the drive - - Returns: - free_disk_space (int): The free disk space measured in bytes - """ - return psutil.disk_usage(self.get_path()).free - def get_drive_size(self) -> int: """ Determines the total drive size @@ -206,16 +197,6 @@ class DriveHandle: if (os.path.isdir(f'{self._drive_letter}:\\demo')): shutil.rmtree(f'{self._drive_letter}:\\demo') - def delete_file(self, path: str) -> None: - """ - Deletes the specified file without moving it to the recyle bin - - Parameters: - path (str): The path to the deletable file - """ - print(colored(f"[DriveHandle] Deleting file {path}.", "light_grey")) - os.remove(path) - def read_cluster(self, cluster_number: int) -> bytes: """ Reads a cluster from the disk