import XCTest
@testable import CommanderCore
final class DebugFtp: XCTestCase {
    func testDebugList() throws {
        guard ProcessInfo.processInfo.environment["MC_FTP_TEST"] == "1" else { throw XCTSkip() }
        var c = FtpConnection(name: "prova", host: "127.0.0.1:2121"); c.user = "prova"
        let s = FtpSession(connection: c, password: "segreta")
        let e = try s.list("/sito")
        print("DEBUG entries:", e.map(\.name))
    }
}
