Lines Matching refs:filePath
29 bool MockFile::SimulateFileLock(const std::string& filePath)
31 int fd = open(filePath.c_str(), O_RDWR | O_CREAT);
56 bool MockFile::ReleaseFileLock(const std::string& filePath)
58 int fd = open(filePath.c_str(), O_RDWR | O_CREAT);
82 bool MockFile::AddFileToZip(zipFile zip, const std::string& filePath, const std::string& entryName)
86 std::cerr << "Failed to create entry in zip file for " << filePath << std::endl;
90 FILE* file = fopen(filePath.c_str(), "rb");
92 std::cerr << "Failed to open file " << filePath << std::endl;
102 std::cerr << "Failed to write to zip for " << filePath << std::endl;
183 void WriteToFile(const std::string& filePath, const std::string& content)
185 std::ofstream file(filePath);
187 std::cerr << "Error creating file: " << filePath << std::endl;