Skip to content

Commit

Permalink
change file permission to 644
Browse files Browse the repository at this point in the history
  • Loading branch information
Enoooch committed Apr 30, 2020
1 parent 2542c65 commit 9fcdf43
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions source/tinypng4mac/tpclient/TPClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,11 @@ class TPClient {
} else {
self.updateStatus(task, newStatus: .finish)
debugPrint("finish: " + task.fileInfo.relativePath + " tasks: " + String(self.runningTasks))
do {
try FileManager.default.setAttributes([FileAttributeKey.posixPermissions: NSNumber(value: 0o644)], ofItemAtPath: task.fileInfo.filePath.path)
} catch {
debugPrint("FileManager set posixPermissions error")
}
}

self.checkExecution()
Expand Down

0 comments on commit 9fcdf43

Please sign in to comment.