public IActionResult Get(string path) { try { var filePaths = directoryService.Dir(path); return(new ObjectResult(filePaths)); } catch (DirectoryNotFoundException) { return(NotFound()); } }