EroticDevelopment / GuideMe

An interactive story viewer
MIT License
9 stars 4 forks source link

ComonFunctions.listFiles() issue if filenames contain commas #42

Open PlayfulGuy opened 2 years ago

PlayfulGuy commented 2 years ago

ComonFunctions.ListFiles() returns a string containing a comma separated list of filenames. On Windows filenames can contain commas, so when you split the returned list on commas the filename that contains a comma gets split into two (or more) pieces.

This function should really use a different separator that is not a valid filename character (like a semi-colon), or we need a version of the function that returns an array similar to ListSubFolders(String FolderName, Boolean blnArr)