forked from pool/nodejs-electron
12 lines
681 B
Diff
12 lines
681 B
Diff
|
|
--- src/components/policy/resources/policy_templates.py.old 2023-11-09 20:20:20.842699700 +0000
|
||
|
|
+++ src/components/policy/resources/policy_templates.py 2023-11-10 19:29:35.698934300 +0000
|
||
|
|
@@ -35,7 +35,7 @@ def _SafeListDir(directory):
|
||
|
|
# On macOS, Finder.app creates .DS_Store files when a user visit a
|
||
|
|
# directory causing failure of the script laters on because there
|
||
|
|
# are no such group as .DS_Store. Skip the file to prevent the error.
|
||
|
|
- return filter(lambda name:(name != '.DS_Store'),os.listdir(directory))
|
||
|
|
+ return filter(lambda name:(name != '.DS_Store'),sorted(os.listdir(directory)))
|
||
|
|
|
||
|
|
TEMPLATES_PATH = os.path.join(
|
||
|
|
os.path.dirname(__file__), 'templates')
|