Consider hidden files while extracting file extension
Previously, file extension was extracted by considering characters after
the last dot as file extension. For hidden files with no file extension,
last dot is the first character of the file name and the whole file name
was considered as file extension which isn't correct. File name can
never be empty. Changed splitFileName to not consider index 0 as last
dot's index.
Bug: 156574463
Test: atest FileUtilsTest#testBuildUniqueFile_normal
Change-Id: Ibeac5dcff88bf6db848d5ca9f481af4f68a33d1d
2 files changed