if Source_count != 0:
print "Source Download complete!!, All Download complete count : ", Source_count, '\n'
return Source_count
#Yesterday = date.fromtimestamp(time.time() - 60*60*24) #어제 날짜를 구함!!
Today = date.fromtimestamp(time.time()) #오늘 날짜를 구함!!
Sample_download_target_path = vendor['Sample_addr'] + vendor['Innerpath'] + Today.strftime("%Y%m") #샘플을 다운로드할 경로 설정!!
error, Copy_Complete_source_count, Sample_target_dir, Nextdir, Lastdir = YYYY_MM_DD(Today.strftime("%Y.%m.%d"), Localpath, Sample_download_target_path) #어제 날자인지를 확인해서 다운함!!
errorcode(error)
반응형