From 91527162d8d5346caa948147d5c6b75f19ea440a Mon Sep 17 00:00:00 2001 From: Gerry Nelson <45608078+gerrynelson63@users.noreply.github.com> Date: Fri, 30 Aug 2019 14:54:31 -0400 Subject: [PATCH] changed the default for days older Made days older a future date by default to be sure that all files are included when it is not specified. --- listfiles.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/listfiles.py b/listfiles.py index 1f28cc2..6a8d378 100755 --- a/listfiles.py +++ b/listfiles.py @@ -32,7 +32,7 @@ parser = argparse.ArgumentParser() parser.add_argument("-n","--name", help="Name contains",default=None) parser.add_argument("-c","--type", help="Content Type in.",default=None) parser.add_argument("-p","--parent", help="ParentURI starts with.",default=None) -parser.add_argument("-d","--days", help="List files older than this number of days",default='0') +parser.add_argument("-d","--days", help="List files older than this number of days",default='-1') parser.add_argument("-m","--modifiedby", help="Last modified id equals",default=None) parser.add_argument("-s","--sortby", help="Sort the output descending by this field",default='modifiedTimeStamp') parser.add_argument("-o","--output", help="Output Style", choices=['csv','json','simple'],default='json') @@ -79,4 +79,4 @@ cols=['id','name','contentType','documentType','createdBy','modifiedTimeStamp',' # print result printresult(files_result_json,output_style,cols) - \ No newline at end of file +