Re: How to detect Time Machine volume?

2011-08-03 Thread Stephane Sudre
I agree that the idea is to skip the Time Machine directory (current or old), not the entire partition. On Tue, Aug 2, 2011 at 8:51 PM, Charles Srstka cocoa...@charlessoft.com wrote: On Aug 2, 2011, at 12:37 PM, Stephane Sudre wrote: Worse case: an old time machine partition has been replaced

How to detect Time Machine volume?

2011-08-02 Thread Leonardo Borsten
Hello, What is the most reliable way to detect in code if a mounted volume is the Time Machine disk? Currently I'm using the following code (also to detect a Boot Camp volume): - (Boolean)isNotSearchable:(NSString *)volumePath { NSFileManager *fm = [NSFileManager defaultManager];

Re: How to detect Time Machine volume?

2011-08-02 Thread Stephane Sudre
This code would work in most cases but is actually unreliable. Obvious cases: you have 2 text files with these names ar the root of a partition. Worse case: an old time machine partition has been replaced by a new one. Since the old partition is some kind of a second backup, the user has not

Re: How to detect Time Machine volume?

2011-08-02 Thread Charles Srstka
On Aug 2, 2011, at 12:37 PM, Stephane Sudre wrote: Worse case: an old time machine partition has been replaced by a new one. Since the old partition is some kind of a second backup, the user has not removed the Time Machine files. Depending on what he wants to do, this may not be a relevant