Blender Git Commit Log

Git Commits -> Revision d0253b2

Revision d0253b2 by Campbell Barton (master)
March 22, 2017, 08:34 (GMT)
BLI_path_util: add BLI_path_name_at_index

Utility to get a file/dir in the path by index,
supporting negative indices to start from the end of the path.

Without this it wasn't straightforward to get
the a files parent directory name from a filepath.

Commit Details:

Full Hash: d0253b2ea4f3d196d76d3dd7ce6725abd2edc26b
Parent Commit: 253281f
Lines Changed: +201, -0

3 Modified Paths:

/source/blender/blenlib/BLI_path_util.h (+3, -0) (Diff)
/source/blender/blenlib/intern/path_util.c (+65, -0) (Diff)
/tests/gtests/blenlib/BLI_path_util_test.cc (+133, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021