From 3541c6ec8d78c8b791727865ac2d78ea1b7fb6ee Mon Sep 17 00:00:00 2001 From: Max Howell Date: Thu, 17 Jan 2019 23:37:44 +0000 Subject: [PATCH] Tidy --- README.md | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index b516c95..09c1bc3 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Path.swift +# Path.swift ![badge-platforms] ![badge-languages] A file-system pathing library focused on developer experience and robust end‐results. @@ -114,16 +114,16 @@ We provide `ls()`, called because it behaves like the Terminal `ls` function, the name thus implies its behavior, ie. that it is not recursive. ```swift -for path in Path.home.ls() { - print(path.path) - print(path.kind) // .directory or .file +for entry in Path.home.ls() { + print(entry.path) + print(entry.kind) // .directory or .file } -for path in Path.home.ls() where path.kind == .file { +for entry in Path.home.ls() where entry.kind == .file { //… } -for path in Path.home.ls() where path.mtime > yesterday { +for entry in Path.home.ls() where entry.path.mtime > yesterday { //… } @@ -145,3 +145,7 @@ package.append(.package(url: "https://github.com/mxcl/Path.swift", from: "0.0.0" ### Get push notifications for new releases https://codebasesaga.com/canopy/ + + +[badge-platforms]: https://img.shields.io/badge/platforms-macOS%20%7C%20Linux-lightgrey.svg +[badge-languages]: https://img.shields.io/badge/swift-4.2-orange.svg