mirror of
https://github.com/qvacua/vimr.git
synced 2024-12-26 07:13:24 +03:00
GH-433 Remove unnec' class from static field usage
This commit is contained in:
parent
f014ba39f8
commit
86fb1c80dc
@ -10,16 +10,16 @@ fileprivate let iconsCache = NSCache<NSURL, NSImage>()
|
|||||||
|
|
||||||
class FileUtils {
|
class FileUtils {
|
||||||
|
|
||||||
fileprivate static let keysToGet = [
|
fileprivate static let keysToGet: [URLResourceKey] = [
|
||||||
URLResourceKey.isDirectoryKey,
|
.isDirectoryKey,
|
||||||
URLResourceKey.isHiddenKey,
|
.isHiddenKey,
|
||||||
URLResourceKey.isAliasFileKey,
|
.isAliasFileKey,
|
||||||
URLResourceKey.isSymbolicLinkKey
|
.isSymbolicLinkKey
|
||||||
]
|
]
|
||||||
|
|
||||||
fileprivate static let scanOptions: FileManager.DirectoryEnumerationOptions = [
|
fileprivate static let scanOptions: FileManager.DirectoryEnumerationOptions = [
|
||||||
FileManager.DirectoryEnumerationOptions.skipsSubdirectoryDescendants,
|
.skipsSubdirectoryDescendants,
|
||||||
FileManager.DirectoryEnumerationOptions.skipsPackageDescendants
|
.skipsPackageDescendants
|
||||||
]
|
]
|
||||||
|
|
||||||
fileprivate static let fileManager = FileManager.default
|
fileprivate static let fileManager = FileManager.default
|
||||||
|
Loading…
Reference in New Issue
Block a user