From b9554045d8d17e5f549fa568e2bf1915813d4d4d Mon Sep 17 00:00:00 2001 From: Kare Morstol Date: Mon, 8 Dec 2014 00:06:34 +0100 Subject: [PATCH] Mention shortcut to NSFileManager.defaultManager in README. --- README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index fdc6903..be6d440 100644 --- a/README.md +++ b/README.md @@ -45,6 +45,14 @@ run("echo line 1") |>> file2 file2.writeln("line 2") ``` +And there's easy access to NSFileManager: + +```swift +File.fileExistsAtPath("fileiwant.txt") +File.isExecutableFileAtPath("program") +... +``` + #### Use standard input ```swift @@ -85,7 +93,7 @@ Launch with e.g. `ls | print_linenumbers.swift` NOTE: Code compiled with optimisations turned on (anything but "SWIFT_OPTIMIZATION_LEVEL = -Onone") crashes when reading from streams. So SwiftShell is compiled with the “Debug” configuration by default. -## LICENSE +## License Released under the MIT License (MIT), http://opensource.org/licenses/MIT