Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
3.6k views
in .NET FTP by
      /// <summary>  
      /// Get size for a remote file
      /// </summary>
      /// <param name="remoteFile">  
      /// name of remote file
      /// </param>
      /// <returns>   
      /// size of file in bytes
      /// </returns>
      public long Size(string remoteFile)
      {         
         string reply = control.SendCommand("SIZE " + remoteFile);
         lastValidReply = control.ValidateReply(reply, "213");
         
         // parse the reply string ...
         long fs = long.Parse(lastValidReply.ReplyText);
         return fs;
      }

2 Answers

0 votes
by
Thanks, we'll try to put size into the next version. It is due out very soon, we are a bit swamped with a few things!

      /// <summary>  
      /// Get size for a remote file
      /// </summary>
      /// <param name="remoteFile">  
      /// name of remote file
      /// </param>
      /// <returns>   
      /// size of file in bytes
      /// </returns>
      
0 votes
by
Hi bruce,

Hopefully you don't need to perform a tremendous amount of testing on the 4 lines of code. :)

Also, will my previous change to FTPControlSocket.cs be included? I won't upgrade right away if I need to fix it again. :/

-Matt

Categories

...