Add date time creation column to staging folder upload view.
This commit is contained in:
@@ -2,6 +2,7 @@ from __future__ import unicode_literals
|
||||
|
||||
import base64
|
||||
import os
|
||||
import time
|
||||
import urllib
|
||||
|
||||
try:
|
||||
@@ -62,6 +63,9 @@ class StagingFile(object):
|
||||
file=open(self.get_full_path(), mode='rb'), name=self.filename
|
||||
)
|
||||
|
||||
def get_date_time_created(self):
|
||||
return time.ctime(os.path.getctime(self.get_full_path()))
|
||||
|
||||
def get_full_path(self):
|
||||
return os.path.join(self.staging_folder.folder_path, self.filename)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user