文件名称:FileWatcher:监视macOS中的文件系统更改
文件大小:52KB
文件格式:ZIP
更新时间:2024-06-04 09:05:18
Swift
FileWatcher Swift中的一个简单的文件监视程序。 安装: CocoaPods pod "FileWatcher" 迦太基github "eonist/FileWatcher" "master" Swift软件包管理器https://github.com/eonist/FileWatcher.git 手动打开FileWatcherExample.xcodeproj 例子 这将监视您的桌面是否有文件更改: let filewatcher = FileWatcher ([ NSString ( string : " ~/Desktop " ). expandingTildeInPath ]) filewatcher. callback = { event in print ( " Something happened here: " + event. path )
【文件预览】:
FileWatcher-master
----FileWatcherExample()
--------Info.plist(1KB)
--------AppDelegate.swift(824B)
--------FileWatcherExample.entitlements(312B)
--------Base.lproj()
--------Assets.xcassets()
----Sources()
--------FileWatcher()
----.swiftpm()
--------xcode()
----FileWatcher.podspec(983B)
----Tests()
--------FileWatcherTests()
----LICENSE(1KB)
----FileWatcherExample.xcodeproj()
--------xcshareddata()
--------project.xcworkspace()
--------xcuserdata()
--------project.pbxproj(21KB)
----README.md(2KB)
----.swiftlint.yml(4KB)
----Package.swift(441B)
----.gitignore(4KB)
----FileWatcher_macOS()
--------Info.plist(831B)
--------FileWatcher_macOS.h(545B)