File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed 
apps/files_external/lib/Command Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,11 @@ protected function configure(): void {
5454				InputOption::VALUE_OPTIONAL ,
5555				'The path in the storage to scan ' ,
5656				'' 
57+ 			)->addOption (
58+ 				'unscanned ' ,
59+ 				'' ,
60+ 				InputOption::VALUE_NONE ,
61+ 				'only scan files which are marked as not fully scanned ' 
5762			);
5863		parent ::configure ();
5964	}
@@ -84,7 +89,15 @@ protected function execute(InputInterface $input, OutputInterface $output): int
8489		});
8590
8691		try  {
87- 			$ scannerscan ($ path
92+ 			if  ($ inputgetOption ('unscanned ' )) {
93+ 				if  ($ path'' ) {
94+ 					$ outputwriteln ('<error>--unscanned is mutually exclusive with --path</error> ' );
95+ 					return  1 ;
96+ 				}
97+ 				$ scannerbackgroundScan ();
98+ 			} else  {
99+ 				$ scannerscan ($ path
100+ 			}
88101		} catch  (LockedException $ e
89102			if  (is_string ($ egetReadablePath ()) && str_starts_with ($ egetReadablePath (), 'scanner:: ' )) {
90103				if  ($ egetReadablePath () === 'scanner:: ' ) {
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments