11 Commits

Author SHA1 Message Date
Jeremy Schonfeld
db104087d4
(140820778) Darwin SearchPaths without expanding tilde produce non-tilde-based paths (#1069) 2024-12-04 12:52:55 -08:00
Jeremy Schonfeld
86c79a1f85
FileManager Entry Points for ObjC Directory Enumeration (#1047)
* (139469462) ObjC API for directory search paths should use Swift implementation

* Fix trash directory bug
2024-11-13 09:50:43 -08:00
Jeremy Schonfeld
c92631f340
(138602480) Fix typo in String.replacingTildeWithRealHomeDirectory (#1007) 2024-10-25 13:15:47 -07:00
Jeremy Schonfeld
71eefee7fc
Fetching user/group info causes race conditions (#994)
* Avoid racy stdlib functions for fetching user/group info

* Refactor naming

* Fix build failure
2024-10-23 09:18:15 -07:00
Saleem Abdulrasool
142f409bcc
FoundationEssentials: relax error handling for SHGetFolderPath (#676)
When running in CI, we would see failures due to the environment
variables being changed. This relaxes the precondition to allow the test
failure to propagate.
2024-06-12 13:19:27 -07:00
Saleem Abdulrasool
6061198cb9
FoundationEssentials: limit autosave to user domain (#637)
During the review for the changes to support Windows, we realized that
the location that is being used for the autosave information is only
available within the user domain mask. The Windows implementation was
corrected as part of the implementation, but this corrects the XDG
compliant path to reflect this reality.
2024-05-28 09:10:35 -07:00
Saleem Abdulrasool
2c35194783
FoundationEssentials: provide a known directory for "Autosave Information" (#636)
This adds a missing expected case for a known URL for storage.
2024-05-28 08:31:38 -07:00
Saleem Abdulrasool
e2f85ccd61
FoundationEssentials: avoid precondition failure on Windows (#611)
Repair the error reporting on Windows in the case of a failure in
`SHGetKnownFolder` - the returned value is a `HRESULT`, which is the
extended error code unlike the Win32 APIs which return a `BOOL`.

The "Recyle Bin" is a virtual folder and does not have an associated
path with the folder that we can query. Undo the implementation here for
the time being to avoid the assertion failure in the runtime.
2024-05-15 13:48:53 -07:00
Jeremy Schonfeld
db63ab39bb
(128078561) Fix FileManager bugs found by scl-f (#609) 2024-05-15 11:03:07 -07:00
Saleem Abdulrasool
d91433d415
(128068690) FoundationEssentials: repair the Windows build (#608)
Repair the Windows build after recent additions for FileManager.
2024-05-14 11:37:08 -07:00
Jeremy Schonfeld
cae149702b
Add non-darwin search paths (#598)
* Add non-darwin search paths

* Address review feedback

* Resolve build failures

* Resolve more build failures

* Fix test failures
2024-05-10 15:17:19 -07:00