This commit is contained in:
Uwe Seimet 2021-12-20 19:56:36 +01:00
parent 412b53ddf1
commit fe76a1a577

View File

@ -48,9 +48,9 @@ RascsiImage::RascsiImage()
depth = 0; depth = 0;
} }
bool RascsiImage::CheckDepth(const string& folder) bool RascsiImage::CheckDepth(const string& filename)
{ {
return count(folder.begin(), folder.end(), '/') <= depth; return count(filename.begin(), filename.end(), '/') <= depth;
} }
bool RascsiImage::CreateImageFolder(int fd, const string& filename) bool RascsiImage::CreateImageFolder(int fd, const string& filename)