class_docstr: A setting that displays a filesystem path name
      
class_docstr_tok: ["A","setting","that","displays","a","filesystem","path","name"]
code: def __init__(
      self,
      text,
      value=None,
      dir_choices=None,
      allow_metadata=True,
      support_urls=False,
      *args,
      **kwargs,
  ):
      if dir_choices is None:
          dir_choices = Directory.DIR_ALL
      if support_urls and not (URL_FOLDER_NAME in dir_choices):
          dir_choices = dir_choices + [URL_FOLDER_NAME]
      if value is None:
          value = Directory.static_join_string(dir_choices[0], "")
      self.dir_choices = dir_choices
      self.allow_metadata = allow_metadata
      self.support_urls = support_urls
      super(Directory, self).__init__(text, value, *args, **kwargs)
  
imports: import os
  import sys
  from ._text import Text
  from .._validation_error import ValidationError
  from ...preferences import ABSOLUTE_FOLDER_NAME
  from ...preferences import DEFAULT_INPUT_FOLDER_NAME
  from ...preferences import DEFAULT_INPUT_SUBFOLDER_NAME
  from ...preferences import DEFAULT_OUTPUT_FOLDER_NAME
  from ...preferences import DEFAULT_OUTPUT_SUBFOLDER_NAME
  from ...preferences import NO_FOLDER_NAME
  from ...preferences import URL_FOLDER_NAME
  from ...preferences import get_default_image_directory
  from ...preferences import get_default_output_directory
  from ...preferences import standardize_default_folder_names
label_desc: Use image node_id 1 to create a new Directory object from inherited base classes: Text with example: obj = Directory(text, value, dir_choices, allow_metadata, support_urls)