|
|
@@ -48,7 +48,8 @@ namespace Util
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- ScanQueue(dataFilePath, dataFilePath, client);
|
|
|
+ string localFile = dataFilePath.Substring(dataFilePath.IndexOf("omega_make/") + 11).Replace("\\", "/");
|
|
|
+ ScanQueue(localFile, dataFilePath, client);
|
|
|
}
|
|
|
}
|
|
|
else
|
|
|
@@ -70,8 +71,16 @@ namespace Util
|
|
|
//是文件
|
|
|
if (file != null)
|
|
|
{
|
|
|
- string localFile = file.FullName.Substring(file.FullName.IndexOf("net7.0//") + 8).Replace("\\", "/");
|
|
|
- ScanQueue(localFile, file.FullName, client);
|
|
|
+ if(file.FullName.Contains("net7.0/"))
|
|
|
+ {
|
|
|
+ string localFile = file.FullName.Substring(file.FullName.IndexOf("net7.0//") + 8).Replace("\\", "/");
|
|
|
+ ScanQueue(localFile, file.FullName, client);
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ string localFile = file.FullName.Substring(file.FullName.IndexOf("omega_make/") + 11).Replace("\\", "/");
|
|
|
+ ScanQueue(localFile, file.FullName, client);
|
|
|
+ }
|
|
|
}
|
|
|
else scan(files[i], client);
|
|
|
}
|