MCPcopy Index your code
hub / github.com/Threadfin/Threadfin / checkFilePermission

Function checkFilePermission

src/toolchain.go:145–155  ·  view source on GitHub ↗

Prüft Dateiberechtigung

(dir string)

Source from the content-addressed store, hash-verified

143
144// Prüft Dateiberechtigung
145func checkFilePermission(dir string) (err error) {
146
147 var filename = dir + "permission.test"
148
149 err = os.WriteFile(filename, []byte(""), 0644)
150 if err == nil {
151 err = os.RemoveAll(filename)
152 }
153
154 return
155}
156
157// Ordnerpfad für das laufende OS generieren
158func getPlatformPath(path string) string {

Callers 3

ThreadfinRestoreFromCLIFunction · 0.85
InitFunction · 0.85
updateServerSettingsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected