mirror of
https://github.com/samsonjs/samhuri.net.git
synced 2026-04-27 14:57:40 +00:00
Ignore .gitkeep and .DS_Store files
This commit is contained in:
parent
c2c28953ec
commit
c4f7af1684
1 changed files with 5 additions and 0 deletions
|
|
@ -60,6 +60,11 @@ public final class Generator {
|
||||||
|
|
||||||
func renderOrCopyFile(url fileURL: URL, targetDir: URL) throws {
|
func renderOrCopyFile(url fileURL: URL, targetDir: URL) throws {
|
||||||
let filename = fileURL.lastPathComponent
|
let filename = fileURL.lastPathComponent
|
||||||
|
guard filename != ".DS_Store", filename != ".gitkeep" else {
|
||||||
|
print("Ignoring hidden file \(filename)")
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
let ext = filename.split(separator: ".").last!
|
let ext = filename.split(separator: ".").last!
|
||||||
switch ext {
|
switch ext {
|
||||||
case "less":
|
case "less":
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue