|
@@ -89,7 +89,10 @@ static String _BuildFileName(const String& prefix,const Path& path)
|
|
|
// internal path name.
|
|
|
String file = prefix;
|
|
|
file = Path::Join(file, '/', path.getPath());
|
|
|
- file = Path::Join(file, '/', path.getFileName());
|
|
|
+ if (path.getFileName().isEmpty() && path.getExtension().isNotEmpty()) //weird, filename-less file, so handle it slightly special-case
|
|
|
+ file += String("/");
|
|
|
+ else
|
|
|
+ file = Path::Join(file, '/', path.getFileName());
|
|
|
file = Path::Join(file, '.', path.getExtension());
|
|
|
return file;
|
|
|
}
|