do not run file observer on hidden directories
This commit is contained in:
		
							parent
							
								
									911e392006
								
							
						
					
					
						commit
						490115d20e
					
				| @ -36,7 +36,7 @@ public abstract class ConversationsFileObserver { | |||||||
|                 continue; |                 continue; | ||||||
|             } |             } | ||||||
|             for(File file : files) { |             for(File file : files) { | ||||||
|                 if (file.isDirectory() && !file.getName().equals(".") && !file.getName().equals("..")) { |                 if (file.isDirectory() && file.getName().charAt(0) != '.') { | ||||||
|                     final String currentPath = file.getAbsolutePath(); |                     final String currentPath = file.getAbsolutePath(); | ||||||
|                     if (depth(file) <= 8 && !stack.contains(currentPath) && !observing(currentPath)) { |                     if (depth(file) <= 8 && !stack.contains(currentPath) && !observing(currentPath)) { | ||||||
|                         stack.push(currentPath); |                         stack.push(currentPath); | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Daniel Gultsch
						Daniel Gultsch