mirror of
https://github.com/scito/extract_otp_secrets.git
synced 2025-12-18 08:12:26 +01:00
improve handling of wrong urls
- adapt tests - improve messages for files - show red box camera
This commit is contained in:
@@ -134,3 +134,7 @@ def replace_escaped_octal_utf8_bytes_with_str(str: str) -> str:
|
||||
|
||||
def quick_and_dirty_workaround_encoding_problem(str: str) -> str:
|
||||
return re.sub(r'name: "encoding: .*$', '', str, flags=re.MULTILINE)
|
||||
|
||||
|
||||
def count_files_in_dir(path: PathLike) -> int:
|
||||
return len([name for name in os.listdir(path) if os.path.isfile(os.path.join(path, name))])
|
||||
|
||||
Reference in New Issue
Block a user