parameters: (directoriesToAdd)
return_statement: return True
docstring: Return True if the directory names are acceptable for input.
      If path contains non-ASCII characters then they are rejected because
      DICOM module cannot reliable read files form folders that contain
      special characters in the name.
docstring_summary: Return True if the directory names are acceptable for input.
      If path contains non-ASCII characters then they are rejected because
      DICOM module cannot reliable read files form folders that contain
      special characters in the name.
docstring_tokens: Return True if the directory names are acceptable for input . If path contains non - ASCII characters then they are rejected because DICOM module cannot reliable read files form folders that contain special characters in the name .
function: def validDirectories(directoriesToAdd):
      """Return True if the directory names are acceptable for input.
      If path contains non-ASCII characters then they are rejected because
      DICOM module cannot reliable read files form folders that contain
      special characters in the name.
      """
      if slicer.app.isCodePageUtf8():
        return True
  
      for directoryName in directoriesToAdd:
        for root, dirs, files in os.walk(directoryName):
          if not DICOMFileDialog.isAscii(root):
            return False
          for name in files:
            if not DICOMFileDialog.isAscii(name):
              return False
          for name in dirs:
            if not DICOMFileDialog.isAscii(name):
              return False
  
      return True
function_tokens: def validDirectories ( directoriesToAdd ) : if slicer . app . isCodePageUtf8 ( ) : return True for directoryName in directoriesToAdd : for root , dirs , files in os . walk ( directoryName ) : if not DICOMFileDialog . isAscii ( root ) : return False for name in files : if not DICOMFileDialog . isAscii ( name ) : return False for name in dirs : if not DICOMFileDialog . isAscii ( name ) : return False return True