altra prova...
This commit is contained in:
@@ -179,25 +179,29 @@ namespace MoonProTablet.WebUserControls
|
||||
try
|
||||
{
|
||||
string filePath = docFilePath(Disegno);
|
||||
logger.lg.scriviLog(string.Format("FilePath: {0}", filePath), tipoLog.INFO);
|
||||
fileMover.obj.setDirectory("");
|
||||
answ = fileMover.obj.fileExist(filePath);
|
||||
// se non trova provo a sostituire "~/" con "./"
|
||||
if (!answ)
|
||||
{
|
||||
logger.lg.scriviLog(string.Format("FilePath: {0}", filePath.Replace("~/", "./")), tipoLog.INFO);
|
||||
answ = fileMover.obj.fileExist(filePath.Replace("~/", "./"));
|
||||
}
|
||||
// penultima prova...
|
||||
// altra prova...
|
||||
if (!answ)
|
||||
{
|
||||
logger.lg.scriviLog(string.Format("FilePath: {0}", filePath.Replace("~/", "")), tipoLog.INFO);
|
||||
answ = fileMover.obj.fileExist(filePath.Replace("~/", ""));
|
||||
}// penultima prova...
|
||||
}
|
||||
// altra prova...
|
||||
if (!answ)
|
||||
{
|
||||
logger.lg.scriviLog(string.Format("FilePath: {0}", filePath.Replace("~/", "e:\\")), tipoLog.INFO);
|
||||
answ = fileMover.obj.fileExist(filePath.Replace("~/", "e:\\")); // hard coded da evitare...
|
||||
fileMover.obj.setDirectory(Server.MapPath(""));
|
||||
answ = fileMover.obj.fileExist(filePath);
|
||||
}
|
||||
// altra prova...
|
||||
if (!answ)
|
||||
{
|
||||
fileMover.obj.setDirectory(Server.MapPath(""));
|
||||
answ = fileMover.obj.fileExist(filePath.Replace("~/", ""));
|
||||
}
|
||||
}
|
||||
catch (Exception exc)
|
||||
|
||||
Reference in New Issue
Block a user