Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] "Error: path contains invalid UTF-8 characters" #58

Open
Murmur opened this issue Mar 12, 2024 · 2 comments
Open

[Bug] "Error: path contains invalid UTF-8 characters" #58

Murmur opened this issue Mar 12, 2024 · 2 comments

Comments

@Murmur
Copy link

Murmur commented Mar 12, 2024

Version: deduplicator 0.2.1 compiled from git master branch.
System: Windows 10
Cmdline: deduplicator.exe --follow-links --json "c:/" > "c:\temp\deduplicator-report_C.txt"

Scannned an entire C drive but after running 2h30m gives an utf8 error. Error does not give detailed information about the filename and folder.

[00:21:59] 3232274 paths mapped   
[00:00:08] ###### 2692395/2692395 indexed files sizes  
[02:30:50] ###### 2613147/2613147 indexed files hashes   
Error: path contains invalid UTF-8 characters
@sreedevk
Copy link
Owner

@Murmur Thank you for testing! I will try recreating the test with invalid characters in file names and create a fix after investigation.

@Murmur
Copy link
Author

Murmur commented Mar 13, 2024

@sreedevk Maybe a charset problem with win10 dos console > output redirect? App could use --output "c:/temp/report.json" argument and directly write an utf8 textfile?

Also would be helpfull to have a "modifiedts": <utcMillisTimestamp>, "modified": "yyyy-MM-ddThh:mm:ss" fields, then my own python script could easily create a filtered report for candidates for file deletion, sort by size/time/path/filename etc tricks.

Current json output:
[
  {
    "path": "\\\\?\\C:\\temp\\data.txt",
    "hash": "10834377068631730967",
    "size": 448
  },
  {
    "path": "\\\\?\\C:\\temp\\data - Copy.txt",
    "hash": "10834377068631730967",
    "size": 448
  }
]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants