This commit is contained in:
GabsPuNs
2026-05-14 21:52:21 -04:00
parent 1b2f5c6fe8
commit f8a2d644f5
291 changed files with 7363 additions and 18368 deletions

View File

@@ -286,10 +286,10 @@ std::vector<File *> *File::listFiles() const
std::string mountedPath = StorageManager.GetMountedPath(lpFileName);
if(mountedPath.length() > 0)
{
strcpy_s(filePath, mountedPath.c_str());
strcpy(filePath, mountedPath.c_str());
}
else if(lpFileName[0] == '/') // already fully qualified path
strcpy_s(filePath, lpFileName );
strcpy(filePath, lpFileName );
else
sprintf(filePath,"%s/%s",getUsrDirPath(), lpFileName );
int fd;
@@ -314,10 +314,10 @@ std::vector<File *> *File::listFiles() const
std::string mountedPath = StorageManager.GetMountedPath(lpFileName);
if(mountedPath.length() > 0)
{
strcpy_s(filePath, mountedPath.c_str());
strcpy(filePath, mountedPath.c_str());
}
else if(lpFileName[0] == '/') // already fully qualified path
strcpy_s(filePath, lpFileName );
strcpy(filePath, lpFileName );
else
sprintf(filePath,"%s/%s",getUsrDirPath(), lpFileName );
@@ -429,10 +429,10 @@ std::vector<File *> *File::listFiles(FileFilter *filter) const
std::string mountedPath = StorageManager.GetMountedPath(lpFileName);
if(mountedPath.length() > 0)
{
strcpy_s(filePath, mountedPath.c_str());
strcpy(filePath, mountedPath.c_str());
}
else if(lpFileName[0] == '/') // already fully qualified path
strcpy_s(filePath, lpFileName );
strcpy(filePath, lpFileName );
else
sprintf(filePath,"%s/%s",getUsrDirPath(), lpFileName );
int fd;
@@ -531,10 +531,10 @@ int64_t File::length()
std::string mountedPath = StorageManager.GetMountedPath(lpFileName);
if(mountedPath.length() > 0)
{
strcpy_s(filePath, mountedPath.c_str());
strcpy(filePath, mountedPath.c_str());
}
else if(lpFileName[0] == '/') // already fully qualified path
strcpy_s(filePath, lpFileName );
strcpy(filePath, lpFileName );
else
sprintf(filePath,"%s/%s",getUsrDirPath(), lpFileName );
@@ -567,10 +567,10 @@ int64_t File::length()
std::string mountedPath = StorageManager.GetMountedPath(lpFileName);
if(mountedPath.length() > 0)
{
strcpy_s(filePath, mountedPath.c_str());
strcpy(filePath, mountedPath.c_str());
}
else if(lpFileName[0] == '/') // already fully qualified path
strcpy_s(filePath, lpFileName );
strcpy(filePath, lpFileName );
else
sprintf(filePath,"%s/%s",getUsrDirPath(), lpFileName );