We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Make config file relocation instructions more explicit
- [x] I have searched the [issues](https://github.com/python-poetry/poetry/issues) of this repo and believe that this is not a duplicate.

## Issue

After upgrading from `1.1` to `1.2` I received the following message:
```
Configuration file exists at /Users/xxx/Library/Application Support/pypoetry, reusing this directory.

Consider moving configuration to /Users/xxx/Library/Preferences/pypoetry, as support for the legacy directory will be removed in an upcoming release.
```

Similar to #6854 I (naively) assumed (based on above message) that the entire directory was configuration related and therefore moved it from `~/Library/Application Support/` to `~/Library/Preferences`.

Of course this lead to poetry no longer functioning.

If an automatic move of the config file is not in the cards, at least the warning message needs to be more explicit what file(s) actually need to be moved.

--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `src/poetry/locations.py`
Content:
```
1 from __future__ import annotations
2 
3 import logging
4 import os
5 import sys
6 
7 from pathlib import Path
8 
9 from platformdirs import user_cache_path
10 from platformdirs import user_config_path
11 from platformdirs import user_data_path
12 
13 
14 logger = logging.getLogger(__name__)
15 
16 _APP_NAME = "pypoetry"
17 
18 DEFAULT_CACHE_DIR = user_cache_path(_APP_NAME, appauthor=False)
19 CONFIG_DIR = Path(
20     os.getenv("POETRY_CONFIG_DIR")
21     or user_config_path(_APP_NAME, appauthor=False, roaming=True)
22 )
23 
24 # platformdirs 2.0.0 corrected the OSX/macOS config directory from
25 # /Users/<user>/Library/Application Support/<appname> to
26 # /Users/<user>/Library/Preferences/<appname>.
27 #
28 # For now we only deprecate use of the old directory.
29 if sys.platform == "darwin":
30     _LEGACY_CONFIG_DIR = CONFIG_DIR.parent.parent / "Application Support" / _APP_NAME
31     config_toml = _LEGACY_CONFIG_DIR / "config.toml"
32     auth_toml = _LEGACY_CONFIG_DIR / "auth.toml"
33 
34     if any(file.exists() for file in (auth_toml, config_toml)):
35         logger.warning(
36             (
37                 "Configuration file exists at %s, reusing this directory.\n\nConsider"
38                 " moving configuration to %s, as support for the legacy directory will"
39                 " be removed in an upcoming release."
40             ),
41             _LEGACY_CONFIG_DIR,
42             CONFIG_DIR,
43         )
44         CONFIG_DIR = _LEGACY_CONFIG_DIR
45 
46 
47 def data_dir() -> Path:
48     poetry_home = os.getenv("POETRY_HOME")
49     if poetry_home:
50         return Path(poetry_home).expanduser()
51 
52     return user_data_path(_APP_NAME, appauthor=False, roaming=True)
53
```
--- 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()

```

diff --git a/src/poetry/locations.py b/src/poetry/locations.py
--- a/src/poetry/locations.py
+++ b/src/poetry/locations.py
@@ -34,9 +34,12 @@
     if any(file.exists() for file in (auth_toml, config_toml)):
         logger.warning(
             (
-                "Configuration file exists at %s, reusing this directory.\n\nConsider"
-                " moving configuration to %s, as support for the legacy directory will"
-                " be removed in an upcoming release."
+                (
+                    "Configuration file exists at %s, reusing this"
+                    " directory.\n\nConsider moving TOML configuration files to %s, as"
+                    " support for the legacy directory will be removed in an upcoming"
+                    " release."
+                ),
             ),
             _LEGACY_CONFIG_DIR,
             CONFIG_DIR,

{"golden_diff": "diff --git a/src/poetry/locations.py b/src/poetry/locations.py\n--- a/src/poetry/locations.py\n+++ b/src/poetry/locations.py\n@@ -34,9 +34,12 @@\n     if any(file.exists() for file in (auth_toml, config_toml)):\n         logger.warning(\n             (\n-                \"Configuration file exists at %s, reusing this directory.\\n\\nConsider\"\n-                \" moving configuration to %s, as support for the legacy directory will\"\n-                \" be removed in an upcoming release.\"\n+                (\n+                    \"Configuration file exists at %s, reusing this\"\n+                    \" directory.\\n\\nConsider moving TOML configuration files to %s, as\"\n+                    \" support for the legacy directory will be removed in an upcoming\"\n+                    \" release.\"\n+                ),\n             ),\n             _LEGACY_CONFIG_DIR,\n             CONFIG_DIR,\n", "issue": "Make config file relocation instructions more explicit\n- [x] I have searched the [issues](https://github.com/python-poetry/poetry/issues) of this repo and believe that this is not a duplicate.\r\n\r\n## Issue\r\n\r\nAfter upgrading from `1.1` to `1.2` I received the following message:\r\n```\r\nConfiguration file exists at /Users/xxx/Library/Application Support/pypoetry, reusing this directory.\r\n\r\nConsider moving configuration to /Users/xxx/Library/Preferences/pypoetry, as support for the legacy directory will be removed in an upcoming release.\r\n```\r\n\r\nSimilar to #6854 I (naively) assumed (based on above message) that the entire directory was configuration related and therefore moved it from `~/Library/Application Support/` to `~/Library/Preferences`.\r\n\r\nOf course this lead to poetry no longer functioning.\r\n\r\nIf an automatic move of the config file is not in the cards, at least the warning message needs to be more explicit what file(s) actually need to be moved.\n", "before_files": [{"content": "from __future__ import annotations\n\nimport logging\nimport os\nimport sys\n\nfrom pathlib import Path\n\nfrom platformdirs import user_cache_path\nfrom platformdirs import user_config_path\nfrom platformdirs import user_data_path\n\n\nlogger = logging.getLogger(__name__)\n\n_APP_NAME = \"pypoetry\"\n\nDEFAULT_CACHE_DIR = user_cache_path(_APP_NAME, appauthor=False)\nCONFIG_DIR = Path(\n    os.getenv(\"POETRY_CONFIG_DIR\")\n    or user_config_path(_APP_NAME, appauthor=False, roaming=True)\n)\n\n# platformdirs 2.0.0 corrected the OSX/macOS config directory from\n# /Users/<user>/Library/Application Support/<appname> to\n# /Users/<user>/Library/Preferences/<appname>.\n#\n# For now we only deprecate use of the old directory.\nif sys.platform == \"darwin\":\n    _LEGACY_CONFIG_DIR = CONFIG_DIR.parent.parent / \"Application Support\" / _APP_NAME\n    config_toml = _LEGACY_CONFIG_DIR / \"config.toml\"\n    auth_toml = _LEGACY_CONFIG_DIR / \"auth.toml\"\n\n    if any(file.exists() for file in (auth_toml, config_toml)):\n        logger.warning(\n            (\n                \"Configuration file exists at %s, reusing this directory.\\n\\nConsider\"\n                \" moving configuration to %s, as support for the legacy directory will\"\n                \" be removed in an upcoming release.\"\n            ),\n            _LEGACY_CONFIG_DIR,\n            CONFIG_DIR,\n        )\n        CONFIG_DIR = _LEGACY_CONFIG_DIR\n\n\ndef data_dir() -> Path:\n    poetry_home = os.getenv(\"POETRY_HOME\")\n    if poetry_home:\n        return Path(poetry_home).expanduser()\n\n    return user_data_path(_APP_NAME, appauthor=False, roaming=True)\n", "path": "src/poetry/locations.py"}], "after_files": [{"content": "from __future__ import annotations\n\nimport logging\nimport os\nimport sys\n\nfrom pathlib import Path\n\nfrom platformdirs import user_cache_path\nfrom platformdirs import user_config_path\nfrom platformdirs import user_data_path\n\n\nlogger = logging.getLogger(__name__)\n\n_APP_NAME = \"pypoetry\"\n\nDEFAULT_CACHE_DIR = user_cache_path(_APP_NAME, appauthor=False)\nCONFIG_DIR = Path(\n    os.getenv(\"POETRY_CONFIG_DIR\")\n    or user_config_path(_APP_NAME, appauthor=False, roaming=True)\n)\n\n# platformdirs 2.0.0 corrected the OSX/macOS config directory from\n# /Users/<user>/Library/Application Support/<appname> to\n# /Users/<user>/Library/Preferences/<appname>.\n#\n# For now we only deprecate use of the old directory.\nif sys.platform == \"darwin\":\n    _LEGACY_CONFIG_DIR = CONFIG_DIR.parent.parent / \"Application Support\" / _APP_NAME\n    config_toml = _LEGACY_CONFIG_DIR / \"config.toml\"\n    auth_toml = _LEGACY_CONFIG_DIR / \"auth.toml\"\n\n    if any(file.exists() for file in (auth_toml, config_toml)):\n        logger.warning(\n            (\n                (\n                    \"Configuration file exists at %s, reusing this\"\n                    \" directory.\\n\\nConsider moving TOML configuration files to %s, as\"\n                    \" support for the legacy directory will be removed in an upcoming\"\n                    \" release.\"\n                ),\n            ),\n            _LEGACY_CONFIG_DIR,\n            CONFIG_DIR,\n        )\n        CONFIG_DIR = _LEGACY_CONFIG_DIR\n\n\ndef data_dir() -> Path:\n    poetry_home = os.getenv(\"POETRY_HOME\")\n    if poetry_home:\n        return Path(poetry_home).expanduser()\n\n    return user_data_path(_APP_NAME, appauthor=False, roaming=True)\n", "path": "src/poetry/locations.py"}]}