invenia / invenia/FTPClient.jl

Add interface for getting addition file information

Open
#82 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Julia
Stars
22
Forks
4
PR merge metrics
No merged PRs in 30d

Description

The FTP "LIST" command provides details like permissions, ownership, file size, and creation timestamps but the current `readdir(::FTP, ...)` call which uses it only provides the file names.

We should extend [`lstat`](https://docs.julialang.org/en/v1/base/file/#Base.Filesystem.lstat) so we can more easily get at this additional information and we should also maybe provide a new function which provides this information on all files in a directory.

To see the addition information you can run:

```julia
ftp = FTP(...)
resp = FTPClient.ftp_command(ftp.ctxt, "LIST");
print(read(resp, String))
```

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Read the FTPClient.jl implementations of readdir and ftp_command, then review the Base.Filesystem.lstat interface. Run the provided LIST command against an FTP server to inspect its response. Done means the client exposes the requested file metadata through a defined interface, including any directory-wide function agreed for the feature.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
networking
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.