MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / size

Method size

tools/python-3.11.9-amd64/Lib/ftplib.py:627–633  ·  view source on GitHub ↗

Retrieve the size of a file.

(self, filename)

Source from the content-addressed store, hash-verified

625 return self.voidcmd(cmd)
626
627 def size(self, filename):
628 '''Retrieve the size of a file.'''
629 # The SIZE command is defined in RFC-3659
630 resp = self.sendcmd('SIZE ' + filename)
631 if resp[:3] == '213':
632 s = resp[3:].strip()
633 return int(s)
634
635 def mkd(self, dirname):
636 '''Make a directory, return its full pathname.'''

Callers

nothing calls this directly

Calls 2

sendcmdMethod · 0.95
stripMethod · 0.80

Tested by

no test coverage detected