cmd-sync-servers - v1.0.0
    Preparing search index...

    Class ServerProbeExperimental

    A connection made with settings that may not be saved yet, for setup: it signs in, goes through the host key and certificate decisions, and then lists folders by absolute path, so the remote root can be picked from what the server shows. Nothing is written on the server.

    Index
    capabilities: Capabilities

    What the server offered.

    • get server(): {
          auth?: {
              keyPath?: string;
              method: "password"
              | "key"
              | "agent";
              savePassword: boolean;
          };
          host?: string;
          id: string;
          name: string;
          options: {
              allowInsecure?: boolean;
              allowRootDeletes?: boolean;
              hostKey?: { algorithm: string; pinnedAt: string; sha256: string };
              ipFamily?: 4 | 6;
              legacyAlgorithms?: boolean;
              passive: boolean;
              remoteDirMode?: string;
              remoteFileMode?: string;
              timeoutSeconds: number;
              tls?: {
                  caFile?: string;
                  minVersion: "TLSv1.2" | "TLSv1.3";
                  servername?: string;
                  trustedCertificate?: {
                      pinnedAt: string;
                      sha256: string;
                      validTo: string;
                  };
              };
              uploadOnSave: boolean;
          };
          port?: number;
          protocol: "sftp"
          | "ftps"
          | "ftps-implicit"
          | "ftp"
          | "local";
          remoteRoot: string;
          username?: string;
          webUrl?: string;
      }
      Experimental

      The settings as connected: the ones given, with every change a decision made.

      Returns {
          auth?: {
              keyPath?: string;
              method: "password" | "key" | "agent";
              savePassword: boolean;
          };
          host?: string;
          id: string;
          name: string;
          options: {
              allowInsecure?: boolean;
              allowRootDeletes?: boolean;
              hostKey?: { algorithm: string; pinnedAt: string; sha256: string };
              ipFamily?: 4 | 6;
              legacyAlgorithms?: boolean;
              passive: boolean;
              remoteDirMode?: string;
              remoteFileMode?: string;
              timeoutSeconds: number;
              tls?: {
                  caFile?: string;
                  minVersion: "TLSv1.2" | "TLSv1.3";
                  servername?: string;
                  trustedCertificate?: {
                      pinnedAt: string;
                      sha256: string;
                      validTo: string;
                  };
              };
              uploadOnSave: boolean;
          };
          port?: number;
          protocol: "sftp"
          | "ftps"
          | "ftps-implicit"
          | "ftp"
          | "local";
          remoteRoot: string;
          username?: string;
          webUrl?: string;
      }

    • get startingFolder(): string | undefined
      Experimental

      The absolute folder the account opens in after signing in; absent for local.

      Returns string | undefined

    • Experimental

      Closes the connection. Safe to call more than once.

      Returns Promise<void>

    • Experimental

      True when an absolute folder exists and can be listed.

      Parameters

      • folder: string

      Returns Promise<boolean>