开发者

reading time stamp from files in Cocoa?

开发者 https://www.devze.com 2023-01-04 12:12 出处:网络
I want to read when a file is created (or last modified) as it showed in Finder \"Date Modified.\" Is there any exis开发者_如何转开发ting method in Cocoa can do so? Thanks!If you\'re using 10.5 or l

I want to read when a file is created (or last modified) as it showed in Finder "Date Modified."

Is there any exis开发者_如何转开发ting method in Cocoa can do so? Thanks!


If you're using 10.5 or later, you can use -[NSFileManager attributesOfItemAtPath:error:].


see 'man stat' or google 'struct stat'

0

精彩评论

暂无评论...
验证码 换一张
取 消