Added ability to grab file directory

Currently only adds path to a string