MCPcopy Create free account
hub / github.com/acl-dev/acl / check_path

Method check_path

app/iconv/charset_transfer.cpp:201–219  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

199}
200
201int charset_transfer::check_path(const char* path, const char* charset)
202{
203 acl::scan_dir scan;
204 if (scan.open(path, true) == false)
205 {
206 logger_error("open %s error %s", path, acl::last_serror());
207 return -1;
208 }
209
210 const char* filepath;
211 int count = 0;
212 while ((filepath = scan.next_file(true)) != NULL)
213 {
214 if (check_file(filepath, charset))
215 count++;
216 }
217
218 return count;
219}
220
221int charset_transfer::transfer(bool recursive /* = true */)
222{

Callers

nothing calls this directly

Calls 4

check_fileFunction · 0.85
next_fileMethod · 0.80
last_serrorFunction · 0.50
openMethod · 0.45

Tested by

no test coverage detected