File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -1356,6 +1356,14 @@ class TestFileManager : XCTestCase {
13561356 let code = ( $0 as? CocoaError ) ? . code
13571357 XCTAssertEqual ( code, emptyFileNameError ?? . fileNoSuchFile)
13581358 }
1359+
1360+ var bIsDirectory = false
1361+ let absoluteDestURL = URL ( filePath: " " , relativeTo: URL ( filePath: " /test_emptyFilename_nonExistent " , directoryHint: . notDirectory) )
1362+ print ( " absolute URL: \( absoluteDestURL) " )
1363+ print ( " absolute path: \( absoluteDestURL. path) " )
1364+ print ( " file exists: \( fm. fileExists ( atPath: absoluteDestURL. path, isDirectory: & bIsDirectory) ) " )
1365+ print ( " is directory: \( bIsDirectory) " )
1366+
13591367 XCTAssertThrowsError ( try fm. createSymbolicLink ( atPath: " /test_emptyFilename_nonExistent " , withDestinationPath: " " ) ) {
13601368 let code = ( $0 as? CocoaError ) ? . code
13611369 XCTAssertEqual ( code, . fileNoSuchFile)
You can’t perform that action at this time.
0 commit comments