diff options
author | Renaud Paquay <rpaquay@google.com> | 2018-09-27 10:46:58 -0700 |
---|---|---|
committer | Renaud Paquay <rpaquay@google.com> | 2018-10-22 08:16:35 -0700 |
commit | bed8b62345e484b27e048e8f21280c5611f795df (patch) | |
tree | 4efc8203f0a092428377ebc3e3494f01fdb9b90c /manifest_xml.py | |
parent | b3133a31642ea88f0e4fe9c382411d43278dc9e4 (diff) | |
download | git-repo-bed8b62345e484b27e048e8f21280c5611f795df.tar.gz |
Add support for long paths
* Add more file i/o wrappers in platform_utils to allow using
long paths (length > MAX_PATH) on Windows.
* Paths using the long path syntax ("\\?\" prefix) should never
escape the platform_utils API surface area, so that this
specific syntax is not visible to the rest of the repo code base.
* Forward many calls from os.xxx to platform_utils.xxx in various place
to ensure long paths support, specifically when repo decides to delete
obsolete directories.
* There are more places that need to be converted to support long paths,
this commit is an initial effort to unblock a few common use cases.
* Also, fix remove function to handle directory symlinks
Change-Id: If82ccc408e516e96ff7260be25f8fd2fe3f9571a
Diffstat (limited to 'manifest_xml.py')
-rw-r--r-- | manifest_xml.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/manifest_xml.py b/manifest_xml.py index 81a6a858..f37732cd 100644 --- a/manifest_xml.py +++ b/manifest_xml.py | |||
@@ -446,7 +446,7 @@ class XmlManifest(object): | |||
446 | 446 | ||
447 | local_dir = os.path.abspath(os.path.join(self.repodir, LOCAL_MANIFESTS_DIR_NAME)) | 447 | local_dir = os.path.abspath(os.path.join(self.repodir, LOCAL_MANIFESTS_DIR_NAME)) |
448 | try: | 448 | try: |
449 | for local_file in sorted(os.listdir(local_dir)): | 449 | for local_file in sorted(platform_utils.listdir(local_dir)): |
450 | if local_file.endswith('.xml'): | 450 | if local_file.endswith('.xml'): |
451 | local = os.path.join(local_dir, local_file) | 451 | local = os.path.join(local_dir, local_file) |
452 | nodes.append(self._ParseManifestXml(local, self.repodir)) | 452 | nodes.append(self._ParseManifestXml(local, self.repodir)) |