prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  StaticFilesConfig and virtual directories
  I'm trying to write a ``FileSystemProtocol`` to load files from the package data using [importlib_resources](https://importlib-resources.readthedocs.io/en/latest/using.html#). But because ``directories`` is defined as ``DirectoryPath``, pydantic checks if the given directories exist in the local filesystem. 
  
  This is not generally true, especially in any kind of virtual filesystem (e.g. a zipped package). I think this condition should be relaxed to support virtual filesystems.
  
  https://github.com/starlite-api/starlite/blob/9bb6dcd57c10a591377cf8e3a537e9292566d5b9/starlite/config/static_files.py#L32
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `litestar/openapi/spec/enums.py`
  Content:
  ```
  1 from enum import Enum
  2 
  3 __all__ = ("OpenAPIFormat", "OpenAPIType")
  4 
  5 
  6 class OpenAPIFormat(str, Enum):
  7     """Formats extracted from: https://datatracker.ietf.org/doc/html/draft-bhutton-json-schema-validation-00#page-13"""
  8 
  9     DATE = "date"
  10     DATE_TIME = "date-time"
  11     TIME = "time"
  12     DURATION = "duration"
  13     URL = "url"
  14     EMAIL = "email"
  15     IDN_EMAIL = "idn-email"
  16     HOST_NAME = "hostname"
  17     IDN_HOST_NAME = "idn-hostname"
  18     IPV4 = "ipv4"
  19     IPV6 = "ipv6"
  20     URI = "uri"
  21     URI_REFERENCE = "uri-reference"
  22     URI_TEMPLATE = "uri-template"
  23     JSON_POINTER = "json-pointer"
  24     RELATIVE_JSON_POINTER = "relative-json-pointer"
  25     IRI = "iri-reference"
  26     IRI_REFERENCE = "iri-reference"  # noqa: PIE796
  27     UUID = "uuid"
  28     REGEX = "regex"
  29 
  30 
  31 class OpenAPIType(str, Enum):
  32     """An OopenAPI type."""
  33 
  34     ARRAY = "array"
  35     BOOLEAN = "boolean"
  36     INTEGER = "integer"
  37     NULL = "null"
  38     NUMBER = "number"
  39     OBJECT = "object"
  40     STRING = "string"
  41
  ```
  --- END FILES ---
  
  Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.
  
  Here is an example:
  
  ```diff
  diff --git a/examples/server_async.py b/examples/server_async.py
  --- a/examples/server_async.py
  +++ b/examples/server_async.py
  @@ -313,4 +313,4 @@
   
   
   if __name__ == "__main__":
  -    asyncio.run(run_async_server("."), debug=True)
  +    asyncio.run(run_async_server(), debug=True)
  diff --git a/examples/server_sync.py b/examples/server_sync.py
  --- a/examples/server_sync.py
  +++ b/examples/server_sync.py
  @@ -313,5 +313,5 @@
   
   
   if __name__ == "__main__":
  -    server = run_sync_server(".")
  +    server = run_sync_server()
       server.shutdown()
  
  ```
  
golden_diff: diff --git a/litestar/openapi/spec/enums.py b/litestar/openapi/spec/enums.py
  --- a/litestar/openapi/spec/enums.py
  +++ b/litestar/openapi/spec/enums.py
  @@ -26,6 +26,7 @@
       IRI_REFERENCE = "iri-reference"  # noqa: PIE796
       UUID = "uuid"
       REGEX = "regex"
  +    BINARY = "binary"
   
   
   class OpenAPIType(str, Enum):
  
verification_info: {"golden_diff": "diff --git a/litestar/openapi/spec/enums.py b/litestar/openapi/spec/enums.py\n--- a/litestar/openapi/spec/enums.py\n+++ b/litestar/openapi/spec/enums.py\n@@ -26,6 +26,7 @@\n     IRI_REFERENCE = \"iri-reference\"  # noqa: PIE796\n     UUID = \"uuid\"\n     REGEX = \"regex\"\n+    BINARY = \"binary\"\n \n \n class OpenAPIType(str, Enum):\n", "issue": "StaticFilesConfig and virtual directories\nI'm trying to write a ``FileSystemProtocol`` to load files from the package data using [importlib_resources](https://importlib-resources.readthedocs.io/en/latest/using.html#). But because ``directories`` is defined as ``DirectoryPath``, pydantic checks if the given directories exist in the local filesystem. \r\n\r\nThis is not generally true, especially in any kind of virtual filesystem (e.g. a zipped package). I think this condition should be relaxed to support virtual filesystems.\r\n\r\nhttps://github.com/starlite-api/starlite/blob/9bb6dcd57c10a591377cf8e3a537e9292566d5b9/starlite/config/static_files.py#L32\n", "before_files": [{"content": "from enum import Enum\n\n__all__ = (\"OpenAPIFormat\", \"OpenAPIType\")\n\n\nclass OpenAPIFormat(str, Enum):\n    \"\"\"Formats extracted from: https://datatracker.ietf.org/doc/html/draft-bhutton-json-schema-validation-00#page-13\"\"\"\n\n    DATE = \"date\"\n    DATE_TIME = \"date-time\"\n    TIME = \"time\"\n    DURATION = \"duration\"\n    URL = \"url\"\n    EMAIL = \"email\"\n    IDN_EMAIL = \"idn-email\"\n    HOST_NAME = \"hostname\"\n    IDN_HOST_NAME = \"idn-hostname\"\n    IPV4 = \"ipv4\"\n    IPV6 = \"ipv6\"\n    URI = \"uri\"\n    URI_REFERENCE = \"uri-reference\"\n    URI_TEMPLATE = \"uri-template\"\n    JSON_POINTER = \"json-pointer\"\n    RELATIVE_JSON_POINTER = \"relative-json-pointer\"\n    IRI = \"iri-reference\"\n    IRI_REFERENCE = \"iri-reference\"  # noqa: PIE796\n    UUID = \"uuid\"\n    REGEX = \"regex\"\n\n\nclass OpenAPIType(str, Enum):\n    \"\"\"An OopenAPI type.\"\"\"\n\n    ARRAY = \"array\"\n    BOOLEAN = \"boolean\"\n    INTEGER = \"integer\"\n    NULL = \"null\"\n    NUMBER = \"number\"\n    OBJECT = \"object\"\n    STRING = \"string\"\n", "path": "litestar/openapi/spec/enums.py"}], "after_files": [{"content": "from enum import Enum\n\n__all__ = (\"OpenAPIFormat\", \"OpenAPIType\")\n\n\nclass OpenAPIFormat(str, Enum):\n    \"\"\"Formats extracted from: https://datatracker.ietf.org/doc/html/draft-bhutton-json-schema-validation-00#page-13\"\"\"\n\n    DATE = \"date\"\n    DATE_TIME = \"date-time\"\n    TIME = \"time\"\n    DURATION = \"duration\"\n    URL = \"url\"\n    EMAIL = \"email\"\n    IDN_EMAIL = \"idn-email\"\n    HOST_NAME = \"hostname\"\n    IDN_HOST_NAME = \"idn-hostname\"\n    IPV4 = \"ipv4\"\n    IPV6 = \"ipv6\"\n    URI = \"uri\"\n    URI_REFERENCE = \"uri-reference\"\n    URI_TEMPLATE = \"uri-template\"\n    JSON_POINTER = \"json-pointer\"\n    RELATIVE_JSON_POINTER = \"relative-json-pointer\"\n    IRI = \"iri-reference\"\n    IRI_REFERENCE = \"iri-reference\"  # noqa: PIE796\n    UUID = \"uuid\"\n    REGEX = \"regex\"\n    BINARY = \"binary\"\n\n\nclass OpenAPIType(str, Enum):\n    \"\"\"An OopenAPI type.\"\"\"\n\n    ARRAY = \"array\"\n    BOOLEAN = \"boolean\"\n    INTEGER = \"integer\"\n    NULL = \"null\"\n    NUMBER = \"number\"\n    OBJECT = \"object\"\n    STRING = \"string\"\n", "path": "litestar/openapi/spec/enums.py"}]}