Blender Git Commit Log

Git Commits -> Revision d7b9202

Revision d7b9202 by Bastien Montagne (master)
July 14, 2015, 16:57 (GMT)
BLI_path_utils: fix/enhance BLI_filename_make_safe(), add BLI_path_make_safe().

BLI_filename_make_safe had several issues:
* Would replace all dots ('.'), not a great idea since it would break extensions.
* Was not checking for 'control' ASCII chars (though unlikely, better to be safe here).
* Win32 only: was not checking for forbidden names (con, aux, ltp0, com0, etc.).

New BLI_path_make_safe() simply checks each path's item with BLI_filename_make_safe().

Commit Details:

Full Hash: d7b9202567199cb769305d4037eefbba71dda3f9
Parent Commit: d0c5eac
Lines Changed: +120, -5

2 Modified Paths:

/source/blender/blenlib/BLI_path_util.h (+2, -1) (Diff)
/source/blender/blenlib/intern/path_util.c (+118, -4) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021