Documentation ¶
Overview ¶
Package bfsftp abstracts an FTP file system.
When imported, it registers a global `ftp://` scheme resolver and can be used like:
import ( "github.com/bsm/bfs" _ "github.com/bsm/bfs/bfsftp" ) func main() { ctx := context.Background() b, _ := bfs.Connect(ctx, "ftp://user:pass@hostname:21/path/to/root?tmpdir=%2Fcustom%2Ftmp") f, _ := b.Open(ctx, "file/within/root.txt") ... }
bfs.Connect supports the following query parameters:
tmpdir - custom temp dir
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.