Write path to root directory and current directory