11/13/2023 0 Comments Ripgrep work stealing queueI'm not sure how other sync providers and sync services implement these things though there must be a standardized API of some sort to determine this stuff otherwise it would be insanity. In this OneDrive issue though, it's technically a sync provider folder, which are implemented strangely. That works in most cases, but there's a lot more "filesystem" types than are exposed by parsing volumes. The way -one-file-system is implemented on Windows is by getting the volume serial number containing the given file. gitignore files could be symlinked/hardlinked to a '.ignore' file. I'm unaware of an easier method of easily identifying such cloud and/or offline-online/sync related files,Īlso, parsing attrib.exe output isn't reliable either. Parsing which files ARE locally available and which are NOT would probably be a pain, but I think ripgrep should check some of these flags in the -one-file-system code somehow since they're sync-related flags (and likely used on more than just OneDrive). I pieced together what I could and wrote a powershell script to parse these attributes and flags here: Get-FileAttributesEx.ps1 These files seem to have identifiable flags, but it's not entirely clear. Repro: Create file in ~\OneDrive with uniquely identifiable text Right Click -> "Free Up Space" run rg -one-file-system with that unique text and it triggers download of the file. Possibly somewhat related to #705 and I would consider this a bug if ripgrep is trying to read files not locally available (RECALL_ON_DATA_ACCESS) which triggers OneDrive to download the files.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |