MCPcopy Create free account
hub / github.com/ceph/ceph / valid

Method valid

src/pybind/ceph_argparse.py:668–673  ·  view source on GitHub ↗
(self, s, partial=False)

Source from the content-addressed store, hash-verified

666 Openable file
667 """
668 def valid(self, s, partial=False):
669 # set self.val if the specified path is readable or writable
670 s = os.path.abspath(s)
671 if not os.access(s, os.R_OK):
672 self._validate_writable_file(s)
673 self.val = s
674
675 def _validate_writable_file(self, fname):
676 if os.path.exists(fname):

Callers

nothing calls this directly

Calls 2

accessMethod · 0.80

Tested by

no test coverage detected