Skip to content

Instantly share code, notes, and snippets.

View peturdainn's full-sized avatar
💭
ETOOMANYPROJECTS

petur peturdainn

💭
ETOOMANYPROJECTS
View GitHub Profile
@TerryE
TerryE / ftpserver.lua
Last active March 21, 2025 17:25
FTP Server Example
--[[ A simple ftp server
This is my implementation of a FTP server using Github user Neronix's
example as inspriration, but as a cleaner Lua implementation that has been
optimised for use in LFS. The coding style adopted here is more similar to
best practice for normal (PC) module implementations, as using LFS enables
me to bias towards clarity of coding over brevity. It includes extra logic
to handle some of the edge case issues more robustly. It also uses a
standard forward reference coding pattern to allow the code to be laid out
in main routine, subroutine order.