pkg.re/essentialkaos/ek.v11@v12.41.0+incompatible/fsutil/list_windows.go (about) 1 package fsutil 2 3 // ////////////////////////////////////////////////////////////////////////////////// // 4 // // 5 // Copyright (c) 2022 ESSENTIAL KAOS // 6 // Apache License, Version 2.0 <https://www.apache.org/licenses/LICENSE-2.0> // 7 // // 8 // ////////////////////////////////////////////////////////////////////////////////// // 9 10 // ListingFilter is struct with properties for filtering listing output 11 type ListingFilter struct { 12 MatchPatterns []string // ❗ Slice with shell file name patterns 13 NotMatchPatterns []string // ❗ Slice with shell file name patterns 14 15 ATimeOlder int64 // ❗ Files with ATime less or equal to defined timestamp (BEFORE date) 16 ATimeYounger int64 // ❗ Files with ATime greater or equal to defined timestamp (AFTER date) 17 CTimeOlder int64 // ❗ Files with CTime less or equal to defined timestamp (BEFORE date) 18 CTimeYounger int64 // ❗ Files with CTime greater or equal to defined timestamp (AFTER date) 19 MTimeOlder int64 // ❗ Files with MTime less or equal to defined timestamp (BEFORE date) 20 MTimeYounger int64 // ❗ Files with MTime greater or equal to defined timestamp (AFTER date) 21 22 SizeLess int64 // ❗ Files with size less than defined 23 SizeGreater int64 // ❗ Files with size greater than defined 24 SizeEqual int64 // ❗ Files with size equals to defined 25 SizeZero bool // ❗ Empty files 26 27 Perms string // ❗ Permission (see fsutil.CheckPerms for more info) 28 NotPerms string // ❗ Permission (see fsutil.CheckPerms for more info) 29 } 30 31 // ////////////////////////////////////////////////////////////////////////////////// // 32 33 // ❗ List is lightweight method for listing directory 34 func List(dir string, ignoreHidden bool, filters ...ListingFilter) []string { 35 panic("UNSUPPORTED") 36 return nil 37 } 38 39 // ❗ ListAll is lightweight method for listing all files and directories 40 func ListAll(dir string, ignoreHidden bool, filters ...ListingFilter) []string { 41 panic("UNSUPPORTED") 42 return nil 43 } 44 45 // ❗ ListAllDirs is lightweight method for listing all directories 46 func ListAllDirs(dir string, ignoreHidden bool, filters ...ListingFilter) []string { 47 panic("UNSUPPORTED") 48 return nil 49 } 50 51 // ❗ ListAllFiles is lightweight method for listing all files 52 func ListAllFiles(dir string, ignoreHidden bool, filters ...ListingFilter) []string { 53 panic("UNSUPPORTED") 54 return nil 55 } 56 57 // ❗ ListToAbsolute converts slice with relative paths to slice with absolute paths 58 func ListToAbsolute(path string, list []string) { 59 panic("UNSUPPORTED") 60 }