Index: shared/scripts/configuration/utility.py =================================================================== diff -u -re620a9fd664c96a736c0d7ca2ffe03d98a913189 -r1b298b2e80e20d600e2dab95b055c878c2521c83 --- shared/scripts/configuration/utility.py (.../utility.py) (revision e620a9fd664c96a736c0d7ca2ffe03d98a913189) +++ shared/scripts/configuration/utility.py (.../utility.py) (revision 1b298b2e80e20d600e2dab95b055c878c2521c83) @@ -25,13 +25,21 @@ -def get_current_date_and_time(date_format='%Y/%b/%d - %H:%M:%S'): - +def get_current_date_and_time(date_format='%Y/%m/%d - %H:%M:%S'): ##doc string need to be added + """ + Method to get current date and time. + @input date_format (str) - format of date to be retrieved. + @return (str) - date in specified format. + """ date = datetime.now() return str(date.strftime(date_format)) def append_cloudsync_credentials_file(): - + """ + This function is the handler for getting file from log folder. + Application log file is automatically created on '/home/denali/Desktop/sd-card/cloudsync/ {current_date}_out.log' + @return latest_file - (string) returns latest file that append on log folder from sd-data + """ try: os.makedirs(CLOUD_CREDENTIALS_LOCATION, exist_ok = True) test.log("Directory created successfully")