def getOneSize(ch):
    """
    @type ch: L{twisted.python.filepath.FilePath}
    @return: The size, in bytes, of the given path only.
    """
    try:
        return ch.getsize()
    except OSError, e:
        if e.errno == errno.ENOENT:
            # XXX FilePath is broken
            if os.path.islink(ch.path):
                return len(os.readlink(ch.path))
            else:
                raise
        else:
            raise
def getOneSize ( ch ) : try : return ch . getsize ( ) except OSError , e : if e . errno == errno . ENOENT : if os . path . islink ( ch . path ) : return len ( os . readlink ( ch . path ) ) else : raise else : raise
@type ch: L{twisted.python.filepath.FilePath}
    @return: The size, in bytes, of the given path only.