MCPcopy Create free account
hub / github.com/RainingComputers/whipFTP / get_properties

Method get_properties

FTP_controller.py:340–354  ·  view source on GitHub ↗
(self, file_details)

Source from the content-addressed store, hash-verified

338 return(self.ftp.pwd())
339
340 def get_properties(self, file_details):
341 if(self.server_platform == 'Linux'):
342 details_list = file_details.split()
343 #Get file attributes
344 file_attribs = details_list[0]
345 #Get date modified
346 date_modified = ' '.join(details_list[5:8])
347 #Remove the path from the name
348 file_name = ' '.join(details_list[8:])
349 #Get size if it is not a directory
350 if('d' not in file_details[0]):
351 file_size = details_list[4]
352 return [file_name, file_attribs, date_modified, file_size]
353 else:
354 return [file_name, file_attribs, date_modified]
355
356 def is_dir(self, file_details):
357 if(self.server_platform == 'Linux'):

Callers 6

get_file_listMethod · 0.95
download_dirMethod · 0.95
get_dir_sizeMethod · 0.95
downloadMethod · 0.45
clipboard_pasteMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected