소스 검색

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.
Perry Fraser 2 년 전
부모
커밋
954780ed24
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      scripts/flipper/storage.py

+ 1 - 1
scripts/flipper/storage.py

@@ -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"""