|
|
|
@ -63,7 +63,8 @@ public partial class MainForm : Form |
|
|
|
|
string fullPath = Path.GetFullPath( fname ) ; |
|
|
|
|
if ( fullPath.StartsWith( dataDir ) ) { |
|
|
|
|
key = fname.Substring( dataDir.Length ) ; |
|
|
|
|
if ( key.StartsWith( "/" ) || key.StartsWith( "\\" ) ) |
|
|
|
|
key = key.Replace( "\\", "/" ) ; |
|
|
|
|
if ( key.StartsWith( "/" ) ) |
|
|
|
|
key = key.Substring( 1 ) ; |
|
|
|
|
} else { |
|
|
|
|
// NOTE: I don't think we should ever get here :-/ If we do, the user will have to manage |
|
|
|
|