Only trash regular files
Signed-off-by: Christopher Snowhill <kode54@gmail.com>CQTexperiment
parent
5411a60ea1
commit
2e1460f72d
|
@ -751,12 +751,14 @@ static inline void dispatch_sync_reentrant(dispatch_queue_t queue, dispatch_bloc
|
|||
[playbackController playlistDidChange:self];
|
||||
|
||||
for(PlaylistEntry *pe in objects) {
|
||||
if([pe.URL isFileURL]) {
|
||||
NSURL *removed = nil;
|
||||
NSError *error = nil;
|
||||
[[NSFileManager defaultManager] trashItemAtURL:pe.URL resultingItemURL:&removed error:&error];
|
||||
pe.trashURL = removed;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
- (void)setSortDescriptors:(NSArray *)sortDescriptors {
|
||||
DLog(@"Current: %@, setting: %@", [self sortDescriptors], sortDescriptors);
|
||||
|
|
Loading…
Reference in New Issue