Open ijbranch opened 11 months ago
Can you elaborate?
Hi Uwe, I have UsesCleaner in the root directory of my ‘working drives’ D: & E:. I work on a number of projects on the drives from time to time, depending on the need and my mood. 😉. Every now and then I ‘clean-up’ by creating a new directory with just the relevant code in it and delete the old directory. It is all backed up by Acronis. I also download/update libraries from GitHub and other repositories using SVN. So, periodically I run UsersCleaner from the root directory to clean up the uses section of the units. “usescleaner *.pas -s” The problem comes if there deleted .pas files in the Recycle Bin, UsesCleaner always fails with them. ☹ If UsesCleaner ignored the Recycle Bin it wouldn’t fail on those files. In any case, there is no need to clean up the uses clause on those files.
Regards, Ian
From: Uwe Raabe @.> Sent: Thursday, November 23, 2023 7:21 AM To: UweRaabe/UsesCleaner @.> Cc: ijbranch @.>; Author @.> Subject: Re: [UweRaabe/UsesCleaner] Recycle Bin.. :-( (Issue #2)
Can you elaborate?
— Reply to this email directly, view it on GitHubhttps://github.com/UweRaabe/UsesCleaner/issues/2#issuecomment-1823457472, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABEPZPKAQM3BWFNALXQIQ53YFZNCRAVCNFSM6AAAAAA7WXNZFKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRTGQ2TONBXGI. You are receiving this because you authored the thread.Message ID: @.**@.>>
There is an undocumented parameter -ignore taking a comma separated list of file masks. Any file matching at least one of these masks will be skipped. Changing your call to usescleaner *.pas -s -ignore:D:\$Recycle.Bin\*
might do the trick.
Hi Uwe, Nope. @.***
I tried this too: "usescleaner .pas -s -ignore:.\$RECYCLE.BIN\.pas"
Ian
From: Uwe Raabe @.> Sent: Thursday, November 23, 2023 10:17 AM To: UweRaabe/UsesCleaner @.> Cc: ijbranch @.>; Author @.> Subject: Re: [UweRaabe/UsesCleaner] Recycle Bin.. :-( (Issue #2)
There is an undocumented parameter -ignore taking a comma separated list of file masks. Any file matching at least one of these masks will be skipped. Changing your call to usescleaner .pas -s -ignore:.\$ might do the trick.
- Reply to this email directly, view it on GitHubhttps://github.com/UweRaabe/UsesCleaner/issues/2#issuecomment-1823617159, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABEPZPLR2SAVDOIXIZWYS53YF2BW5AVCNFSM6AAAAAA7WXNZFKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRTGYYTOMJVHE. You are receiving this because you authored the thread.Message ID: @.**@.>>
Hi Uwe, Suggest that UsesCleaner should ignore the Recycle Bin.
Regards, Ian