changed: upload function
select file type by the extension param: multi fixed: uptime function it showed incorrect uptime time (minuts were badly calculated) git-svn-id: svn://ttmath.org/publicrep/winix/trunk@575 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -911,6 +911,7 @@ void Request::MakePath(std::string & path)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
bool Request::MakeDirsOnFS()
|
||||
{
|
||||
size_t i;
|
||||
@@ -922,11 +923,13 @@ bool Request::MakeDirsOnFS()
|
||||
path += '/';
|
||||
path += dir_table[i]->url;
|
||||
|
||||
if( mkdir(path.c_str(), 0755) < 0 )
|
||||
if( !IsFile(path.c_str()) )
|
||||
{
|
||||
// oops
|
||||
log << log1 << "Request: can't create the directory on fs: " << path << logend;
|
||||
return false;
|
||||
if( mkdir(path.c_str(), 0755) < 0 )
|
||||
{
|
||||
log << log1 << "Request: can't create the directory on fs: " << path << logend;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user