FileManager.currentDirectoryPath Can Return nil, Not Annotated as an Optional
Originator: | butler.grant.j | ||
Number: | rdar://42442333 | Date Originated: | 2018-07-20 16:25:00 |
Status: | Open | Resolved: | |
Product: | Developer Tools | Product Version: | Xcode Version 10.0 beta 4 (10L213o) |
Classification: | Reproducible: | Always |
Summary: According to the docs for FileManager.currentDirectoryPath: > If the current working directory is not accessible for any reason, the value of this property is nil. However, currentDirectoryPath is not annotated as an Optional. Steps to Reproduce: 1. Look at the docs for FileManager.currentDirectoryPath: https://developer.apple.com/documentation/foundation/filemanager/1410766-currentdirectorypath 2. Look at the generated interface for FileManager in Xcode. Expected Results: The property is annotated as an Optional, since the docs say the value can be nil. Actual Results: The property is not an Optional. Version/Build: Current docs on developer.apple.com as of July 20th, 2018 Xcode Version 10.0 beta 4 (10L213o) Configuration:
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!