check symlink file Signed-off-by:baozewei@huawei.com

Signed-off-by: b30052170 <baozewei@huawei.com>
This commit is contained in:
b30052170 2024-09-20 09:33:29 +08:00
parent 57b5c5bad3
commit 1c9480b9b2

View File

@ -283,6 +283,7 @@ void PrintCupsClient::SymlinkDirectory(const char *srcDir, const char *destDir)
if (std::remove(destFilePath.c_str()) != 0) {
PRINT_HILOGE("error deleting file %{public}s err: %{public}s",
destFilePath.c_str(), strerror(errno));
continue;
} else {
PRINT_HILOGW("file successfully deleted");
}