complete implementation of filesystem publish