fs/CheckFile: remove variable path_utf8
This commit is contained in:
parent
09f743dc1a
commit
998227cffc
@ -32,12 +32,10 @@
|
||||
void
|
||||
CheckDirectoryReadable(Path path_fs)
|
||||
try {
|
||||
const auto path_utf8 = path_fs.ToUTF8();
|
||||
|
||||
const FileInfo fi(path_fs);
|
||||
if (!fi.IsDirectory()) {
|
||||
FormatError(config_domain,
|
||||
"Not a directory: %s", path_utf8.c_str());
|
||||
"Not a directory: %s", path_fs.ToUTF8().c_str());
|
||||
return;
|
||||
}
|
||||
|
||||
@ -49,7 +47,7 @@ try {
|
||||
if (IsAccessDenied(e))
|
||||
FormatError(config_domain,
|
||||
"No permission to traverse (\"execute\") directory: %s",
|
||||
path_utf8.c_str());
|
||||
path_fs.ToUTF8().c_str());
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user