diff --git a/FileTree/FileTreeDataSource.m b/FileTree/FileTreeDataSource.m index 71d34df1b..9a4f1e668 100644 --- a/FileTree/FileTreeDataSource.m +++ b/FileTree/FileTreeDataSource.m @@ -70,6 +70,9 @@ - (void)setRootURL: (NSURL *)rootURL { + if (![[NSFileManager defaultManager] fileExistsAtPath:[rootURL path]]) + rootURL = [NSURL fileURLWithPath:[@"~/Music" stringByExpandingTildeInPath]]; + [rootNode release]; rootNode = [[DirectoryNode alloc] initWithDataSource:self url:rootURL];