1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- import Cocoa
- class ViewController: NSViewController {
- override func viewDidLoad() {
- super.viewDidLoad()
-
-
-
-
-
-
-
- let fileAttributy = try! FileManager.default.attributesOfItem(atPath: "/Users/zhudongyong/Desktop/文档 2/BMP/Others/Origin Files/125-years-of-topo-mapping.pdf")
- let symbAttributy = try! FileManager.default.attributesOfItem(atPath: "/Users/zhudongyong/Desktop/文档 2/BMP/Others/Origin Files/125-years-of-topo-mapping的替身.pdf")
- let fileAttributy2 = try! FileManager.default.attributesOfItem(atPath: "/Users/zhudongyong/Desktop/文档 2/BMP/Others/Origin Files/nrcs141p2_018306.pdf")
- let symbAttributy2 = try! FileManager.default.attributesOfItem(atPath: "/Users/zhudongyong/Desktop/文档 2/BMP/Others/Origin Files/nrcs141p2_018306的替身.pdf")
-
- let url = URL.init(filePath: "/Users/zhudongyong/Desktop/文档 2/BMP/Others/Origin Files/125-years-of-topo-mapping的替身.pdf")
- let string = try! NSDictionary.init(contentsOf: url, error: ())
-
- NSLog("%@", fileAttributy)
- NSLog("%@", symbAttributy)
- NSLog("%@", fileAttributy2)
- NSLog("%@", symbAttributy2)
-
- NSLog("%@", string)
- }
- override var representedObject: Any? {
- didSet {
-
- }
- }
- }
|