I am using this code to hide the directories, is this the most efficient one or is there any other better way to do this?

Code:
NSFileManager *fileManger = [NSFileManager defaultManager];
NSString *oldPath;
NSString *newPath;

if ([fileManager moveItemAtPath:oldPath toPath:newPath error:nil])
{
NSLog (@"Renamed");
}
else
{
NSLog (@"Error renaming");
}

[fileManager release];