We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
When lacking permissions to write, clone message should quote prefix.
When trying to install a new package into a location that the user lacks write permissions (read-only root), conda helpfully suggests cloning the environment into a new location:

```
CondaIOError: IO error: Missing write permissions in: C:\Program Files\Anaconda
#
# You don't appear to have the necessary permissions to install packages
# into the install area 'C:\Program Files\Anaconda'.
# However you can clone this environment into your home directory and
# then make changes to it.
# This may be done using the command:
#
# $ conda create -n my_deathstar --clone=C:\Program Files\Anaconda\envs\deathstar
```
As shown in the example above, this clone path may include spaces. This will be particularly common on Windows, where a global install will result in files written to Program Files, which a non-administrator user will not be able to write to, and contains spaces. Because the command presents a prefix, it should be quoted to guard against this case.



--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `conda/cli/help.py`
Content:
```
1 from __future__ import absolute_import, division, print_function, unicode_literals
2 
3 from os.path import join
4 
5 from .common import name_prefix
6 from ..base.context import context
7 from ..exceptions import CondaIOError
8 
9 
10 def read_message(fn):
11     res = []
12     for envs_dir in context.envs_dirs:
13         path = join(envs_dir, '.conda-help', fn)
14         try:
15             with open(path) as fi:
16                 s = fi.read().decode('utf-8')
17             s = s.replace('${envs_dir}', envs_dir)
18             res.append(s)
19         except IOError:
20             pass
21     return ''.join(res)
22 
23 
24 def root_read_only(command, prefix, json=False):
25     assert command in {'install', 'update', 'remove'}
26 
27     msg = read_message('ro.txt')
28     if not msg:
29         msg = """\
30 Missing write permissions in: ${root_dir}
31 #
32 # You don't appear to have the necessary permissions to ${command} packages
33 # into the install area '${root_dir}'.
34 # However you can clone this environment into your home directory and
35 # then make changes to it.
36 # This may be done using the command:
37 #
38 # $ conda create -n my_${name} --clone=${prefix}
39 """
40     msg = msg.replace('${root_dir}', context.root_prefix)
41     msg = msg.replace('${prefix}', prefix)
42     msg = msg.replace('${name}', name_prefix(prefix))
43     msg = msg.replace('${command}', command)
44     raise CondaIOError(msg)
45
```
--- 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/conda/cli/help.py b/conda/cli/help.py
--- a/conda/cli/help.py
+++ b/conda/cli/help.py
@@ -35,7 +35,7 @@
 # then make changes to it.
 # This may be done using the command:
 #
-# $ conda create -n my_${name} --clone=${prefix}
+# $ conda create -n my_${name} --clone="${prefix}"
 """
     msg = msg.replace('${root_dir}', context.root_prefix)
     msg = msg.replace('${prefix}', prefix)

{"golden_diff": "diff --git a/conda/cli/help.py b/conda/cli/help.py\n--- a/conda/cli/help.py\n+++ b/conda/cli/help.py\n@@ -35,7 +35,7 @@\n # then make changes to it.\n # This may be done using the command:\n #\n-# $ conda create -n my_${name} --clone=${prefix}\n+# $ conda create -n my_${name} --clone=\"${prefix}\"\n \"\"\"\n     msg = msg.replace('${root_dir}', context.root_prefix)\n     msg = msg.replace('${prefix}', prefix)\n", "issue": "When lacking permissions to write, clone message should quote prefix.\nWhen trying to install a new package into a location that the user lacks write permissions (read-only root), conda helpfully suggests cloning the environment into a new location:\r\n\r\n```\r\nCondaIOError: IO error: Missing write permissions in: C:\\Program Files\\Anaconda\r\n#\r\n# You don't appear to have the necessary permissions to install packages\r\n# into the install area 'C:\\Program Files\\Anaconda'.\r\n# However you can clone this environment into your home directory and\r\n# then make changes to it.\r\n# This may be done using the command:\r\n#\r\n# $ conda create -n my_deathstar --clone=C:\\Program Files\\Anaconda\\envs\\deathstar\r\n```\r\nAs shown in the example above, this clone path may include spaces. This will be particularly common on Windows, where a global install will result in files written to Program Files, which a non-administrator user will not be able to write to, and contains spaces. Because the command presents a prefix, it should be quoted to guard against this case.\r\n\r\n\n", "before_files": [{"content": "from __future__ import absolute_import, division, print_function, unicode_literals\n\nfrom os.path import join\n\nfrom .common import name_prefix\nfrom ..base.context import context\nfrom ..exceptions import CondaIOError\n\n\ndef read_message(fn):\n    res = []\n    for envs_dir in context.envs_dirs:\n        path = join(envs_dir, '.conda-help', fn)\n        try:\n            with open(path) as fi:\n                s = fi.read().decode('utf-8')\n            s = s.replace('${envs_dir}', envs_dir)\n            res.append(s)\n        except IOError:\n            pass\n    return ''.join(res)\n\n\ndef root_read_only(command, prefix, json=False):\n    assert command in {'install', 'update', 'remove'}\n\n    msg = read_message('ro.txt')\n    if not msg:\n        msg = \"\"\"\\\nMissing write permissions in: ${root_dir}\n#\n# You don't appear to have the necessary permissions to ${command} packages\n# into the install area '${root_dir}'.\n# However you can clone this environment into your home directory and\n# then make changes to it.\n# This may be done using the command:\n#\n# $ conda create -n my_${name} --clone=${prefix}\n\"\"\"\n    msg = msg.replace('${root_dir}', context.root_prefix)\n    msg = msg.replace('${prefix}', prefix)\n    msg = msg.replace('${name}', name_prefix(prefix))\n    msg = msg.replace('${command}', command)\n    raise CondaIOError(msg)\n", "path": "conda/cli/help.py"}], "after_files": [{"content": "from __future__ import absolute_import, division, print_function, unicode_literals\n\nfrom os.path import join\n\nfrom .common import name_prefix\nfrom ..base.context import context\nfrom ..exceptions import CondaIOError\n\n\ndef read_message(fn):\n    res = []\n    for envs_dir in context.envs_dirs:\n        path = join(envs_dir, '.conda-help', fn)\n        try:\n            with open(path) as fi:\n                s = fi.read().decode('utf-8')\n            s = s.replace('${envs_dir}', envs_dir)\n            res.append(s)\n        except IOError:\n            pass\n    return ''.join(res)\n\n\ndef root_read_only(command, prefix, json=False):\n    assert command in {'install', 'update', 'remove'}\n\n    msg = read_message('ro.txt')\n    if not msg:\n        msg = \"\"\"\\\nMissing write permissions in: ${root_dir}\n#\n# You don't appear to have the necessary permissions to ${command} packages\n# into the install area '${root_dir}'.\n# However you can clone this environment into your home directory and\n# then make changes to it.\n# This may be done using the command:\n#\n# $ conda create -n my_${name} --clone=\"${prefix}\"\n\"\"\"\n    msg = msg.replace('${root_dir}', context.root_prefix)\n    msg = msg.replace('${prefix}', prefix)\n    msg = msg.replace('${name}', name_prefix(prefix))\n    msg = msg.replace('${command}', command)\n    raise CondaIOError(msg)\n", "path": "conda/cli/help.py"}]}