in/output to a directed directory