Move filesystem functions to a separate source file