Switch to unified view
a/src/internfile/internfile.cpp | b/src/internfile/internfile.cpp | ||
---|---|---|---|
... |
... |
||
1214 | struct stat st; |
1214 | struct stat st; |
1215 | if (stat(fn.c_str(), &st)) { |
1215 | if (stat(fn.c_str(), &st)) { |
1216 | perror("stat"); |
1216 | perror("stat"); |
1217 | exit(1); |
1217 | exit(1); |
1218 | } |
1218 | } |
1219 | TempDir tmp; |
||
1219 | FileInterner interner(fn, &st, config, "/tmp", 0); |
1220 | FileInterner interner(fn, &st, config, tmp, 0); |
1220 | Rcl::Doc doc; |
1221 | Rcl::Doc doc; |
1221 | FileInterner::Status status = interner.internfile(doc, ipath); |
1222 | FileInterner::Status status = interner.internfile(doc, ipath); |
1222 | switch (status) { |
1223 | switch (status) { |
1223 | case FileInterner::FIDone: |
1224 | case FileInterner::FIDone: |
1224 | case FileInterner::FIAgain: |
1225 | case FileInterner::FIAgain: |