MCPcopy Create free account
hub / github.com/cloudreve/cloudreve / FileTypeFromString

Function FileTypeFromString

inventory/types/types.go:285–293  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

283)
284
285func FileTypeFromString(s string) FileType {
286 switch s {
287 case "file":
288 return FileTypeFile
289 case "folder":
290 return FileTypeFolder
291 }
292 return -1
293}
294
295const (
296 DavAccountReadOnly DavAccountOption = iota

Callers 2

CreateMethod · 0.92
SearchParametersMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected