MCPcopy
hub / github.com/RUB-NDS/PRET / dir_exists

Method dir_exists

pjl.py:121–124  ·  view source on GitHub ↗
(self, path)

Source from the content-addressed store, hash-verified

119
120 # check if remote directory exists
121 def dir_exists(self, path):
122 str_recv = self.cmd('@PJL FSQUERY NAME="' + path + '"', True, False)
123 if re.search("TYPE=DIR", str_recv):
124 return True
125
126 # check if remote file exists
127 def file_exists(self, path):

Callers 3

do_traversalMethod · 0.45
do_cdMethod · 0.45
verify_pathMethod · 0.45

Calls 2

cmdMethod · 0.95
searchMethod · 0.80

Tested by

no test coverage detected