changeDirectory method

Future<bool> changeDirectory(
  1. String? sDirectory
)

Change into the Directory with the Name of sDirectory within the current directory.

Use .. to navigate back Returns true if the directory was changed successfully Returns false if the directory could not be changed (does not exist, no permissions or another error)

Implementation

Future<bool> changeDirectory(String? sDirectory) {
  return FTPDirectory(_socket).changeDirectory(sDirectory);
}