Advanced Mac OS X Programming: The Big Nerd Ranch Guide (Frank Feng's Library) by Mark Dalrymple
Author:Mark Dalrymple [Dalrymple, Mark]
Language: eng
Format: epub
Tags: Big Nerd Ranch Guides, Mac OS X Programming??, COM051370
ISBN: 9780321706546
Publisher: Big Nerd Ranch Guides
Published: 2011-07-31T16:00:00+00:00
A sample run
$ ./permtype ./permtype oopack / /dev/klog /usr/bin/passwd nobody-home (where oopack is a symbolic link) !. ./permtype ./permtype / /dev/klog /usr/bin/passwd nobody-home ./permtype: permissions: rwxr-xr-x type: Regular File file is 9856 bytes (9.62 K) user: markd (501) group: staff (20) last access: Thu May 26 19:14:23 2011 last modification: Thu May 26 19:14:18 2011 last inode change: Thu May 26 19:14:18 2011 /: permissions: rwxr-xr-x type: Directory file is 1292 bytes (1.26 K) user: root (0) group: admin (80) last access: Thu May 26 19:14:18 2011 last modification: Wed May 25 17:03:21 2011 last inode change: Wed May 25 17:10:50 2011 /dev/klog: permissions: rw------- type: Character Special Device file is 0 bytes (0.00 K) user: root (0) group: wheel (0) last access: Thu May 26 19:12:02 2011 last modification: Sun May 1 21:48:14 2011 last inode change: Sun May 1 21:48:14 2011 /usr/bin/passwd: permissions: r-xr-xr-x type: Regular File set-uid! file is 111968 bytes (109.34 K) user: root (0) group: wheel (0) last access: Sun May 1 21:35:36 2011 last modification: Wed Mar 9 00:49:27 2011 last inode change: Sun May 1 21:35:36 2011 error with stat(nobody-home) : 2 (No such file or directory)
Now, just to make your life a little more complicated, both Cocoa and Carbon have different kinds of metadata they bring to the table, including things like the HFS+ Creator and Type code for files, and whether the file extension should be hidden.
NSFileManager has a number of constants for use in the attribute dictionary returned by -[NSFileManager fileAttributesAtPath: traverseLink:]. There is some overlap with what you get from struct stat:
NSFileSize
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Deep Learning with Python by François Chollet(12565)
Hello! Python by Anthony Briggs(9911)
OCA Java SE 8 Programmer I Certification Guide by Mala Gupta(9794)
The Mikado Method by Ola Ellnestam Daniel Brolund(9775)
Dependency Injection in .NET by Mark Seemann(9335)
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(8293)
Test-Driven iOS Development with Swift 4 by Dominik Hauser(7758)
Grails in Action by Glen Smith Peter Ledbrook(7693)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(7557)
Becoming a Dynamics 365 Finance and Supply Chain Solution Architect by Brent Dawson(7024)
Microservices with Go by Alexander Shuiskov(6790)
Practical Design Patterns for Java Developers by Miroslav Wengner(6702)
Test Automation Engineering Handbook by Manikandan Sambamurthy(6645)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(6409)
Angular Projects - Third Edition by Aristeidis Bampakos(6050)
The Art of Crafting User Stories by The Art of Crafting User Stories(5583)
NetSuite for Consultants - Second Edition by Peter Ries(5515)
Demystifying Cryptography with OpenSSL 3.0 by Alexei Khlebnikov(5320)
Kotlin in Action by Dmitry Jemerov(5061)
