x) fix file separators
This commit is contained in:
parent
c26348afb2
commit
9a74f8ca15
@ -66,10 +66,16 @@ static public class log
|
||||
cat = autoCat;
|
||||
}
|
||||
else
|
||||
{
|
||||
var pathPieces = path.Split( '\\' );
|
||||
|
||||
var lastDir = pathPieces[ pathPieces.Length - 2 ];
|
||||
{
|
||||
var pathPieces = path.Split( '\\' );
|
||||
|
||||
if(pathPieces.Length < 2)
|
||||
{
|
||||
pathPieces = path.Split('/');
|
||||
}
|
||||
|
||||
|
||||
var lastDir = pathPieces[ pathPieces.Length - 2 ];
|
||||
|
||||
ImmutableInterlocked.AddOrUpdate( ref s_shortname, pathHash, lastDir, ( key, value ) => { return lastDir; } );
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user