add directory and file.