Charles Hu
b762e818f5
Improve String+Path performance by removing Regex ( #612 )
...
Reimplement `String._transmutingCompressingSlashes` and `pathHasDotDot` without using Regex. Reimplementing this method without Regex allows us to:
- Reduce the additional frames at launch since the Swift rewrite (Regex parsing brings in tons of frames)
- Not having to load additional dylib (`libswift_StringProcessing)
2024-05-15 13:00:05 -07:00
Jonathan Flat
e991656bd0
URL.init(filePath:) should resolve against the base URL before checking if the file is a directory ( #606 )
2024-05-13 17:22:28 -07:00
Jonathan Flat
4a526630f8
Support Windows URL paths in FoundationEssentials ( #602 )
2024-05-13 19:22:08 +00:00
Jonathan Flat
361efcf5fe
Port URL and URLComponents to swift-foundation ( #586 )
2024-05-06 09:51:18 -07:00
Saleem Abdulrasool
f299bde9df
FoundationEssentials: implement some path utilities on Windows ( #547 )
...
Add an implementation for querying the user's home directory and for
resolving symbolic links on Windows.
2024-04-17 14:26:00 -07:00
Saleem Abdulrasool
9491cce69c
FoundationEssentials: add some missing imports for Windows ( #520 )
...
This allows us to get further into building FoundationEssentials once
again on Windows. Much of the file system work has resulted in this
module no longer being viable on Windows and will need to be replaced to
allow building on Windows which does not have the `fts` APIs.
2024-03-29 14:19:23 -07:00
Jeremy Schonfeld
544ec6c816
(123714904) Ensure stable home directory for processes calling seteuid
...
* (123714904) Ensure stable home directory for processes calling seteuid
* (123714904) Add comments
2024-03-21 13:16:19 -07:00
Jeremy Schonfeld
e5211f2926
(122981400) Standardize on using internal import
2024-03-06 13:42:02 -08:00
Jeremy Schonfeld
61835133f8
(123525912) FileManager should standardize home directory paths ( #452 )
2024-03-06 11:47:21 -08:00
Jeremy Schonfeld
0e23938f4b
(123636178) Resolving symlinks can remove prefix from path
2024-02-26 12:58:09 -08:00
Jeremy Schonfeld
5b06c5d5ac
(123102499) FileManager's setAttributes:forItemAtPath: is unnecessarily slow
...
* (123102499) Swift implementation of setAttributes:forItemAtPath: is slower than the old ObjC implementation
* Move relevant key list to static array
* Fix build failure
2024-02-20 11:46:54 -08:00
Jeremy Schonfeld
b8ef4ce99c
(122106445) Exclude some paths from automount standardization
...
* (122106445) Exclude some paths from automount standardization
* Fix linux build failure
2024-02-19 13:04:07 -08:00
Jeremy Schonfeld
33856a556d
(120741818) Port FileManager to swift-foundation
...
* (120741818) Port FileManager to swift-foundation
* (120741818) Fix linux test failures
* (120741818) Fix build failures
2024-02-09 15:03:43 -08:00
Jonathan Flat
f907600758
(121150146) String.lastPathComponent should return last non-empty component
...
Co-authored-by: Jonathan Flat <jflat@apple.com>
2024-02-07 14:13:53 -08:00
Tony Parker
4499edd7b1
Implement Data reading and writing ( #377 )
...
* Implement Data reading and writing
* Use swift-foundation-local for dependency name in benchmark
2024-01-17 13:04:41 -08:00