Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add STAT command support and tests #387

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

namashin
Copy link

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:

  • Created a directory and a file in the test setup.
  • Verified that the Stat method returns the correct status for both the directory and the file.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant