I am trying to check if a directory exists using HDFS commands and if it does I want to store it to a variable and use it later.
So far my code is this: