How to access .vol

Just as the title says, trying to access directories such as .trashes, .vol, and more. They either return NULL or " ". I assume I require elevated privlilages, but when aquired, I still get the same thing.


Does anyone know how to programmicly access these files?

What context are you trying to do this from?

/.vol
is weird but
/.Trashes
is simply a directory with restricted permissions. If you elevate your privileges you can access it the same way as you access any other volume.
$ ls -lha /.Trashes 
ls: .Trashes: Permission denied
$ sudo ls -lha /.Trashes
total 0
d-wx-wx-wt@  2 root  wheel    68B  1 Dec  2014 .
drwxr-xr-x  36 root  wheel   1.3K  5 Jun 23:09 ..

However, in 99% of cases you should avoid monkeying with these special directories because their presence and semantics are not considered API. So, what are you really trying to do here?

Share and Enjoy

Quinn "The Eskimo!"
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"
How to access .vol
 
 
Q