Commit 03763448 authored by Felix Paul Kühne's avatar Felix Paul Kühne
Browse files

file discoverer: remove check preventing the signalization of folder removals

parent 649a2ca1
......@@ -65,9 +65,6 @@ const float MediaTimerInterval = 2.f;
- (void)notifyFileDeleted:(NSString *)fileName
{
if (![fileName isSupportedMediaFormat] && ![fileName isSupportedAudioMediaFormat])
return;
for (id<VLCMediaFileDiscovererDelegate> delegate in _observers) {
if ([delegate respondsToSelector:@selector(mediaFileDeleted:)]) {
[delegate mediaFileDeleted:[self filePath:fileName]];
......@@ -153,10 +150,8 @@ const float MediaTimerInterval = 2.f;
NSPredicate *filterPredicate = [NSPredicate predicateWithFormat:@"not (self in %@)", foundFiles];
NSArray *deletedFiles = [_directoryFiles filteredArrayUsingPredicate:filterPredicate];
for (NSString *fileName in deletedFiles) {
for (NSString *fileName in deletedFiles)
[self notifyFileDeleted:fileName];
}
} else if (_directoryFiles.count < foundFiles.count) { // File was added
NSPredicate *filterPredicate = [NSPredicate predicateWithFormat:@"not (self in %@)", _directoryFiles];
NSArray *addedFiles = [foundFiles filteredArrayUsingPredicate:filterPredicate];
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment