summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/lib/oe/path.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/meta/lib/oe/path.py b/meta/lib/oe/path.py
index 804ecd5fea..d4685403c5 100644
--- a/meta/lib/oe/path.py
+++ b/meta/lib/oe/path.py
@@ -92,7 +92,14 @@ def copyhardlinktree(src, dst):
92 copytree(src, dst) 92 copytree(src, dst)
93 93
94def remove(path, recurse=True): 94def remove(path, recurse=True):
95 """Equivalent to rm -f or rm -rf""" 95 """
96 Equivalent to rm -f or rm -rf
97 NOTE: be careful about passing paths that may contain filenames with
98 wildcards in them (as opposed to passing an actual wildcarded path) -
99 since we use glob.glob() to expand the path. Filenames containing
100 square brackets are particularly problematic since the they may not
101 actually expand to match the original filename.
102 """
96 for name in glob.glob(path): 103 for name in glob.glob(path):
97 try: 104 try:
98 os.unlink(name) 105 os.unlink(name)