diff options
author | Jean-Pierre Ledure <jp@ledure.be> | 2022-07-05 17:47:56 +0200 |
---|---|---|
committer | Jean-Pierre Ledure <jp@ledure.be> | 2022-07-06 12:27:09 +0200 |
commit | 7c0f0afd58c00211236b138ddd4804099c5aec83 (patch) | |
tree | 1436e3d75133213f3927179b624b6e806b10638f /compilerplugins/clang | |
parent | fd262525f45b389cd61d881c78d5d270afe298d6 (diff) |
ScriptForge - (SF_FileSystem) new Normalize() method
Normalize a pathname by collapsing redundant
separators and up-level references
so that A//B, A/B/, A/./B and A/foo/../B
all become A/B.
On Windows, it converts forward slashes
to backward slashes.
The Basic Normalize() method invokes the
_SF_FileSystem__Normalize() function located in
the ScriptForgeHelper.py module for execution
with the os.path builtin library
The os.path.normpath() function can easily be
executed directly from python user scripts.
However the FileSystem.Normalize() method is
proposed as well for Python scripts
- for compatibility Basic/Python reasons
- to manage the FileNaming notation
Change-Id: I1e089612432bd2c75b2e76ffa984289ef7f9d75c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136835
Tested-by: Jean-Pierre Ledure <jp@ledure.be>
Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
Tested-by: Jenkins
Diffstat (limited to 'compilerplugins/clang')
0 files changed, 0 insertions, 0 deletions