Use different path abstraction layers
masterThe aioftp.Server uses a path_io_factory to handle file system operations. You can specify this during server initialization.
Available implementations:
aioftp.PathIO: The default; performs blocking path operations.aioftp.AsyncPathIO: Non-blocking operations wrapped inrun_in_executor. Note: This is generally slow and should be avoided if possible.aioftp.MemoryPathIO: An in-memory file system (proof of concept).
>>> server = aioftp.Server(path_io_factory=aioftp.MemoryPathIO)
>>> await server.start()