Skip to content

Commit

Permalink
server can override and add custom command mappings
Browse files Browse the repository at this point in the history
  • Loading branch information
rupurt committed Dec 18, 2024
1 parent 8c774d8 commit 1308c03
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/aioftp/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -660,6 +660,7 @@ def __init__(
data_ports=None,
encoding="utf-8",
ssl=None,
extra_commands_mapping={},
):
self.block_size = block_size
self.socket_timeout = socket_timeout
Expand Down Expand Up @@ -718,7 +719,7 @@ def __init__(
"syst": self.syst,
"type": self.type,
"user": self.user,
}
} | extra_commands_mapping

async def start(self, host=None, port=0, **kwargs):
"""
Expand Down

0 comments on commit 1308c03

Please sign in to comment.