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

Windows long paths (paths > 260 characters) do not appear to be cleared #1630

Open
lennoxho opened this issue Jan 27, 2024 · 0 comments
Open
Labels

Comments

@lennoxho
Copy link

It appears bleachbit does not handle paths longer than 260 characters on Windows.

Observed with

  • Bleachbit 4.6.0
  • Windows 10 build 10.0.19045.3930 (22H2)
  • Registry key Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem\LongPathsEnabled set to 1

To Reproduce

  1. Make sure the registry key above is set
  2. Create a deeply nested directory under %temp%
  3. Select Temporary Files in bleachbit
  4. Run Clean
  5. Observe the longpath directory still remains after cleaning

Bleachbit snippet

Delete 0B C:\Users\LennoxHo\AppData\Local\Temp\CFCEDD71545C2C3F6BC3CE8B27710855\E7916B2E47812C92BC105D4DBD94EB82\A0F3DF9875931FF12CBDAC3CA52894D0\0C5A1D0D571C1D30D04E4C143E07C300\DABE69BFA8166D5E0A430F9221CD340D
Delete 0B C:\Users\LennoxHo\AppData\Local\Temp\CFCEDD71545C2C3F6BC3CE8B27710855\E7916B2E47812C92BC105D4DBD94EB82\A0F3DF9875931FF12CBDAC3CA52894D0\0C5A1D0D571C1D30D04E4C143E07C300
Delete 0B C:\Users\LennoxHo\AppData\Local\Temp\CFCEDD71545C2C3F6BC3CE8B27710855\E7916B2E47812C92BC105D4DBD94EB82\A0F3DF9875931FF12CBDAC3CA52894D0
Delete 0B C:\Users\LennoxHo\AppData\Local\Temp\CFCEDD71545C2C3F6BC3CE8B27710855\E7916B2E47812C92BC105D4DBD94EB82

Directory still present after cleaning
image


I'm not familiar with the bleachbit stack. Looks like it's Python 3.4 based?
I believe Python >= 3.6 should have long path support

@lennoxho lennoxho added the new label Jan 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant