input: Write a function to create an instance of the FileSystem class and perform various tasks such as saving, deleting, and finding task data. The function should return the results of these operations.
  
  def task_manager(operations):
  	fs = FileSystem({'taskDir': '~/jsub/'})
  	results = []
  	for operation in operations:
  		if operation['action'] == 'save':
  			result = fs.save_task(operation['data'])
  		elif operation['action'] == 'delete':
  			result = fs.delete_task(operation['id'])
  			result = 'Success' if result is None else 'Failure'
  		elif operation['action'] == 'find_by_id':
  			result = fs.find_by_id(operation['id'])
  		elif operation['action'] == 'find_by_ids':
  			result = fs.find_by_ids(operation['ids'])
  		elif operation['action'] == 'all_task_data':
  			result = fs.all_task_data(operation.get('order', 'asc'))
  		elif operation['action'] == 'task_data':
  			result = fs.task_data(operation['id'])
  		results.append(result)
  	return results
  
  assert task_manager([{'action': 'save', 'data': {'name': 'Task1'}}])==[{'name': 'Task1', 'id': 1}]
  assert task_manager([{'action': 'save', 'data': {'name': 'Task2', 'id': 2}}, {'action': 'find_by_id', 'id': 2}])==[{'name': 'Task2', 'id': 2}, {'name': 'Task2', 'id': 2}]
  assert task_manager([{'action': 'save', 'data': {'name': 'Task3'}}, {'action': 'delete', 'id': 3}])==[{'name': 'Task3', 'id': 3}, 'Success']
  assert task_manager([{'action': 'save', 'data': {'name': 'Task4'}}, {'action': 'find_by_ids', 'ids': [4]}])==[{'name': 'Task4', 'id': 4}, [{'name': 'Task4', 'id': 4}]]
  assert task_manager([{'action': 'save', 'data': {'name': 'Task5'}}, {'action': 'all_task_data', 'order': 'desc'}])==[{'name': 'Task5', 'id': 5}, [{'name': 'Task5', 'id': 5}]]
  assert task_manager([{'action': 'save', 'data': {'name': 'Task6'}}, {'action': 'task_data', 'id': 6}])==[{'name': 'Task6', 'id': 6}, {'name': 'Task6', 'id': 6}]
output: def task_manager(operations):
  	fs = FileSystem({'taskDir': '~/jsub/'})
  	results = []
  	for operation in operations:
  		if operation['action'] == 'save':
  			result = fs.save_task(operation['data'])
  		elif operation['action'] == 'delete':
  			result = fs.delete_task(operation['id'])
  			result = 'Success' if result is None else 'Failure'
  		elif operation['action'] == 'find_by_id':
  			result = fs.find_by_id(operation['id'])
  		elif operation['action'] == 'find_by_ids':
  			result = fs.find_by_ids(operation['ids'])
  		elif operation['action'] == 'all_task_data':
  			result = fs.all_task_data(operation.get('order', 'asc'))
  		elif operation['action'] == 'task_data':
  			result = fs.task_data(operation['id'])
  		results.append(result)
  	return results