MCPcopy Create free account
hub / github.com/SegataLab/lefse / funcIsValidFileName

Method funcIsValidFileName

lefsebiom/ValidateData.py:582–596  ·  view source on GitHub ↗

Validates a parameter as a valid file name. :param parameterValue: Value to be evaluated. :type Unknown :return Boolean: True indicates the parameter is a valid file path. :type Boolean

(parameterValue)

Source from the content-addressed store, hash-verified

580 #Testing 4
581 @staticmethod
582 def funcIsValidFileName(parameterValue):
583 """
584 Validates a parameter as a valid file name.
585
586 :param parameterValue: Value to be evaluated.
587 :type Unknown
588 :return Boolean: True indicates the parameter is a valid file path.
589 :type Boolean
590 """
591
592 if parameterValue is None:
593 return False
594 elif(ValidateData.funcIsValidString(parameterValue)):
595 return os.path.exists(parameterValue)
596 return False
597
598 #Tested 5
599 @staticmethod

Callers 2

funcPairTablesMethod · 0.80

Calls 1

funcIsValidStringMethod · 0.80

Tested by

no test coverage detected