libunftp icon indicating copy to clipboard operation
libunftp copied to clipboard

error[E0599]: no function or associated item named `with_fs` found for struct `Server` in the current scope

Open phil-skillwon opened this issue 2 years ago • 1 comments

I was able to compile without any issues a while ago. However, ever since I updated to a newer version of Rust, I started encountering the following errors when compiling:

error[E0599]: no function or associated item named with_fs found for struct Server in the current scope --> src/main.rs:63:36 | 63 | let server = libunftp::Server::with_fs(ftpHome) | ^^^^^^^ function or associated item not found in Server<_, _>

warning: unused import: unftp_sbe_fs::ServerExt --> src/main.rs:17:5 | 17 | use unftp_sbe_fs::ServerExt; | ^^^^^^^^^^^^^^^^^^^^^^^ | = note: #[warn(unused_imports)] on by default

For more information about this error, try rustc --explain E0599.

phil-skillwon avatar Oct 18 '23 02:10 phil-skillwon

@phil-skillwon Hi are you on the latest versions of libunftp and unftp-sbe-fs?

hannesdejager avatar Oct 18 '23 09:10 hannesdejager

Closing due to inactivity

hannesdejager avatar Aug 12 '24 01:08 hannesdejager

For anyone running into this problem: unftp-sbe-fs needs to be set to 0.3.0 instead of 0.2.0 as it is in the Quick Start documentation.

nemasu avatar Nov 06 '25 15:11 nemasu