Trailing slash could munge filenames
Status: Inactive
Brought to you by:
alkrun
I'm working on a GUI version of FLini and I noticed that if
there is a trailing slash on the input directory
specification (i.e. "C:\test\") all ini files parsed from that
root directory will have the first letter of their filename
clipped off. This does not affect recursively processed
directories within the root, although it does make each
root subdirectory have a missing letter in the output.
Logged In: YES
user_id=743810
Doh sorry about the double post, refreshed the page and it
reposted :(
I solved the problem in my modified code with this before
processing begins:
if( SourceDir.LastIndexOf( "\\" ) == SourceDir.Length - 1 )
SourceDir.Length - 1 );