wd = NotebookDirectory[]; FileExistsQ[wd <> "input.txt"] DirectoryQ[wd <> "docs"] FileExistsQ["/" <> "input.txt"] DirectoryQ["/" <> "docs"]