 712e22208c
			
		
	
	712e22208c
	
	
	
		
			
			Summary: Also provide a way to update old files metadata. Test Plan: Create a revision which includes a image file. Check whether the widht, height metadata exists. Run `scripts/files/manage_files.php metadata --all` to update previously uploaded files. Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Maniphest Tasks: T2101 Differential Revision: https://secure.phabricator.com/D4347
		
			
				
	
	
		
			25 lines
		
	
	
		
			605 B
		
	
	
	
		
			PHP
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			605 B
		
	
	
	
		
			PHP
		
	
	
		
			Executable File
		
	
	
	
	
| #!/usr/bin/env php
 | |
| <?php
 | |
| 
 | |
| $root = dirname(dirname(dirname(__FILE__)));
 | |
| require_once $root.'/scripts/__init_script__.php';
 | |
| 
 | |
| $args = new PhutilArgumentParser($argv);
 | |
| $args->setTagline('manage files');
 | |
| $args->setSynopsis(<<<EOSYNOPSIS
 | |
| **files** __command__ [__options__]
 | |
|     Manage Phabricator file storage.
 | |
| 
 | |
| EOSYNOPSIS
 | |
|   );
 | |
| $args->parseStandardArguments();
 | |
| 
 | |
| $workflows = array(
 | |
|   new PhabricatorFilesManagementEnginesWorkflow(),
 | |
|   new PhabricatorFilesManagementMigrateWorkflow(),
 | |
|   new PhutilHelpArgumentWorkflow(),
 | |
|   new PhabricatorFilesManagementMetadataWorkflow(),
 | |
| );
 | |
| 
 | |
| $args->parseWorkflows($workflows);
 |