On Aug 18, 2008, at 1:24 PM, Nicolas Goles wrote:
Hi guys, I am trying to get fileAttributesAtPath using this code:
(files
contains the path to the directory that was enumerated )
while(object = [dirEnumerator nextObject])
{
//First We craft the whole path for a sing
On Aug 18, 2008, at 2:24 PM, Nicolas Goles wrote:
//Try to obtain fileAttributes
NSDictionary *fileAttributes = [manager
fileAttributesAtPath:fullPath traverseLink:NO];
The thing is that my fileAttributes it's always = nil so I always
get "it's
nill" on the console.
--- On Mon, 8/18/08, Nicolas Goles <[EMAIL PROTECTED]> wrote:
> NSDictionary *fileAttributes = [manager
> fileAttributesAtPath:fullPath traverseLink:NO];
>
> if( fileAttributes != nil)
> {
>
> NSString *filetype = [fileAttributes
> objectForKey
If you're using 10.5 you can try the method:
-(NSDictionary *)attributesOfItemAtPath:(NSString *)path error:
(NSError **)error
This way you will get a description of what is failing from the
NSError object. You can use it like this:
NSError *theError;
NSDictionary *fileAttributes = [manage
Hi guys, I am trying to get fileAttributesAtPath using this code: (files
contains the path to the directory that was enumerated )
while(object = [dirEnumerator nextObject])
{
//First We craft the whole path for a single object
NSString *fullPath = [files s