mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-31 13:41:03 +00:00 
			
		
		
		
	Ignore hidden files and directories in find in files
This commit is contained in:
		
							parent
							
								
									47f19cc776
								
							
						
					
					
						commit
						aeff876868
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		|  | @ -235,9 +235,11 @@ void FindInFiles::_scan_dir(String path, PoolStringArray &out_folders) { | ||||||
| 		if (file == "") | 		if (file == "") | ||||||
| 			break; | 			break; | ||||||
| 
 | 
 | ||||||
| 		// Ignore special dirs and hidden dirs (such as .git and .import)
 | 		// Ignore special dirs (such as .git and .import)
 | ||||||
| 		if (file == "." || file == ".." || file.begins_with(".")) | 		if (file == "." || file == ".." || file.begins_with(".")) | ||||||
| 			continue; | 			continue; | ||||||
|  | 		if (dir->current_is_hidden()) | ||||||
|  | 			continue; | ||||||
| 
 | 
 | ||||||
| 		if (dir->current_is_dir()) | 		if (dir->current_is_dir()) | ||||||
| 			out_folders.append(file); | 			out_folders.append(file); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Pedro J. Estébanez
						Pedro J. Estébanez