FileBaseName["F:\\2016-02-23\\11.5_mm_fan_off_pumps_off_1500_hz_3793_\
images_2048_1472_pixels_20160223_1649_time_part"]
should give the base folder name:
"11.5_mm_fan_off_pumps_off_1500_hz_3793_images_2048_1472_pixels_20160223_1649_time_part"
but due to the dot after 11 the result is:
"11"
How can I solve that?
FileNameTake[path, -1]
$\endgroup$FileNameTake
, notFileBaseName
.FileBaseName
does what it's supposed to here: it removes the extension, i.e. everything after the last dot. Note that directories can have extensions too, see e.g..app
on OS X. $\endgroup$-1
is not needed. It always takes the last element of the path, whether that is a directory or not. $\endgroup$