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

Method cwd_parent

FTP_controller.py:327–332  ·  view source on GitHub ↗
(self, name)

Source from the content-addressed store, hash-verified

325 return size
326
327 def cwd_parent(self, name):
328 if('/' not in name): return name
329 parent_name = '/'.join(name.split('/')[:-1])
330 if (parent_name == ''): parent_name = '/'
331 self.ftp.cwd(parent_name)
332 return ''.join(name.split('/')[-1:])
333
334 def mkd(self, name):
335 self.ftp.mkd(name)

Callers 4

rename_fileMethod · 0.45
change_permissionsMethod · 0.45
downloadMethod · 0.45
delete_itemMethod · 0.45

Calls 1

cwdMethod · 0.80

Tested by

no test coverage detected