Updating files in directories