recusive saving of file directory tree working