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

Make WindowsRecycleBin use absolute path. #608

Closed

Conversation

The-Briel-Deal
Copy link

Since all other artifacts here resolve to an absolute path, it would be nice if this followed the same convention and included the partition letter as well.

@joachimmetz
Copy link
Member

joachimmetz commented Jan 31, 2024

First of all a path starting with \ is absolute (from the volume root)

'%%environ_systemdrive%% only refers to (typical) C: not other drive letters where the recycle bin can also be on other volumes. One alternative approach is to add an indicator to indicate that this should apply to all volumes %%system_all_volumes%% or equiv.

Also see: https://dfvfs.readthedocs.io/en/latest/sources/developer/Helpers.html#windows-path-resolver-helper

@joachimmetz joachimmetz self-assigned this Jan 31, 2024
Copy link

codecov bot commented Jan 31, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (6304c2b) 69.85% compared to head (efd9d78) 69.85%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #608   +/-   ##
=======================================
  Coverage   69.85%   69.85%           
=======================================
  Files           9        9           
  Lines         773      773           
=======================================
  Hits          540      540           
  Misses        233      233           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@The-Briel-Deal
Copy link
Author

First of all a path starting with \ is absolute (from the volume root)

'%%environ_systemdrive%% only refers to (typical) C: not other drive letters where the recycle bin can also be on other volumes. One alternative approach is to add an indicator to indicate that this should apply to all volumes %%system_all_volumes%% or equiv.

Also see: https://dfvfs.readthedocs.io/en/latest/sources/developer/Helpers.html#windows-path-resolver-helper

Thats a good point, we decided to put this in our backlog for now. Once we add a variable in GRR like %%system_all_volumes%% we will come back to this.

Closing for now. We'll reopen once the appropriate variable exists. Thanks for the quick response!

@joachimmetz
Copy link
Member

Created #609 as a reminder

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

Successfully merging this pull request may close these issues.

2 participants