mirror of
https://github.com/scito/extract_otp_secret_keys.git
synced 2025-12-13 18:16:37 +01:00
improve handling of wrong urls
- adapt tests - improve messages for files - show red box camera
This commit is contained in:
parent
4c0bb8dc61
commit
f731530f57
5 changed files with 177 additions and 90 deletions
|
|
@ -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))])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue