jlaffaye / ftp

FTP client package for Go
ISC License
1.3k stars 359 forks source link

Add STAT command support and tests #387

Open namashin opened 3 months ago

namashin commented 3 months ago

This pull request adds support for the STAT command to the FTP client, as well as the corresponding tests to ensure its correct functionality.

Changes:

  1. Implemented Stat method in ftp.go to issue the STAT FTP command and return the status of a file or directory.
  2. Added TestServerConn_Stat function in client_test.go to test the new Stat method.

Testing:

This enhancement provides additional functionality to the FTP client, allowing users to retrieve status information about files and directories on the server.

namashin commented 3 months ago

Hi,

Could you please approve the workflows required for this pull request? There are three workflows awaiting approval. Additionally, I have added the necessary signatures to all commits to meet the base branch requirements.

Thank you for your assistance!

Best regards,