private function size($filename)
    {
        if ($this->isSFTP()) {
            $size = (int)@$this->ftp->size($filename);
        } else {
            $size = @ftp_size($this->ftp, $filename);
        }
        if ($size > 0) {
            return $size;
        }
        $this->fail("couldn't get the file size for {$filename}");
    }
private function size($filename)
    {
        if ($this->isSFTP()) {
            $size = (int)@$this->ftp->size($filename);
        } else {
            $size = @ftp_size($this->ftp, $filename);
        }
        if ($size > 0) {
            return $size;
        }
        $this->fail("couldn't get the file size for {$filename}");
    }
private function size ( $ filename ) { if ( $ this -> isSFTP ( ) ) { $ size = ( int ) @ $ this -> ftp -> size ( $ filename ) ; } else { $ size = @ ftp_size ( $ this -> ftp , $ filename ) ; } if ( $ size > 0 ) { return $ size ; } $ this -> fail ( "couldn't get the file size for {$filename}" ) ; }
Return the size of a given file

@param $filename
@return bool
Return the size of a given file