You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 27, 2019. It is now read-only.
////////This is a sample script where all of the parameters are specified on the command line////////
require_once("includes/GPGBulkFileEncryptor.class.php"); //Require the GPG Bulk File Encryptor class
$directory = $argv[1]; //Store our directory in a variable
$deleteOriginals = ($argv[2] === 'true'); //if the string is true then it is boolean true and files will be deleted. Anything else matches false to be safe
//The below if/else is used to check if CLI arguments were properly filled out.
if (count($argv) == 3 AND file_exists($argv[1]) == TRUE) //Check to make sure we have 2 arguments, and a valid directory path (the script counts as an entry in the argv array)