/**
   * Perform a given file operation based on the operationId, which will be used to retrieve the
   * operation details from the CurrentOperations class
   */
  public void requestFileOperation(Long operationId) throws Exception {
    Operation operation = CurrentOperations.getOperation(operationId);

    switch (operation.getOperationType()) {
      case OperationType.FILE_OP_LS:
        ls(operation);
        break;
      case OperationType.FILE_OP_WRITE:
        writeFile(operation);
        break;
      case OperationType.FILE_OP_READ:
        readFile(operation);
        break;
    }
  }