changeDirectory method

void changeDirectory(
  1. String dirname
)

Implementation

void changeDirectory(String dirname) {
  try {
    fileOperations.changeDirectory(dirname);
    sendResponse('250 Directory changed to $currentDirectory');
  } catch (e) {
    sendResponse('550 Access denied or directory not found $e');
    logger.generalLog('Error changing directory: $e');
  }
}