Fix storage.py exist_dir logic (#2639)

* Fix storage.py exist_dir logic. This method would return true if the given path existed as either a directory or
a file, which is what the plain exist method is for.
This commit is contained in:
Perry Fraser 2023-05-07 14:40:38 -04:00 committed by GitHub
parent 914129a0d9
commit 954780ed24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -323,7 +323,7 @@ class FlipperStorage:
return False
raise FlipperStorageException.from_error_code(path, error_code)
return True
return response == b"Directory" or response.startswith(b"Storage")
def exist_file(self, path: str):
"""Does file exist on Flipper"""