Andre Poenitz wrote:
Something like that?
Fine with me. So you are going to replace all those I hope?
Find all "fs::exists", Subfolders, Find Results 1, "lyx-trunk",
"*.c;*.cpp;*.cxx;*.cc;*.tli;*.tlh;*.h;*.hpp;*.hxx;*.hh"
D:\devel\lyx\trunk\src\Buffer.cpp(418): if
(fs::exists(bname.toFilesystemEncoding()) &&
D:\devel\lyx\trunk\src\Buffer.cpp(419):
(!fs::exists(fname.toFilesystemEncoding()) ||
D:\devel\lyx\trunk\src\Buffer.cpp(690): if
(fs::exists(lyxfile.toFilesystemEncoding())) {
D:\devel\lyx\trunk\src\Buffer.cpp(860): if (lyxrc.make_backup &&
fs::exists(encodedFilename)) {
D:\devel\lyx\trunk\src\Buffer.cpp(879): if
(fs::exists(encodedFilename) && isExternallyModified(checksum_method)) {
D:\devel\lyx\trunk\src\Buffer.cpp(1647):
BOOST_ASSERT(fs::exists(pimpl_->filename.toFilesystemEncoding()));
D:\devel\lyx\trunk\src\Buffer.cpp(1657): if (fs::exists(file)) {
D:\devel\lyx\trunk\src\Buffer.cpp(2138): if
(fs::exists(FileName(fname).toFilesystemEncoding())) {
D:\devel\lyx\trunk\src\buffer_funcs.cpp(84): if
(!fs::exists(s.toFilesystemEncoding())) {
D:\devel\lyx\trunk\src\buffer_funcs.cpp(95): if
(fs::exists(e.toFilesystemEncoding()) &&
D:\devel\lyx\trunk\src\buffer_funcs.cpp(96):
fs::exists(s.toFilesystemEncoding()) &&
D:\devel\lyx\trunk\src\buffer_funcs.cpp(122): if
(fs::exists(a.toFilesystemEncoding()) &&
D:\devel\lyx\trunk\src\buffer_funcs.cpp(123):
fs::exists(s.toFilesystemEncoding()) &&
D:\devel\lyx\trunk\src\ConverterCache.cpp(138): if
(!fs::exists(orig_from_name.toFilesystemEncoding())) {
D:\devel\lyx\trunk\src\ConverterCache.cpp(149): if
(!fs::exists(item.cache_name.toFilesystemEncoding())) {
D:\devel\lyx\trunk\src\ConverterCache.cpp(231): if
(!fs::exists(cache_dir.toFilesystemEncoding()))
D:\devel\lyx\trunk\src\EmbeddedFiles.cpp(149): if
(!fs::exists(emb_file))
D:\devel\lyx\trunk\src\EmbeddedFiles.cpp(153): if
(fs::exists(ext_file)) {
D:\devel\lyx\trunk\src\EmbeddedFiles.cpp(191): if
(!fs::exists(ext_file))
D:\devel\lyx\trunk\src\EmbeddedFiles.cpp(195): if
(fs::exists(emb_file)) {
D:\devel\lyx\trunk\src\Exporter.cpp(81): if
(fs::exists(filename.toFilesystemEncoding())) {
D:\devel\lyx\trunk\src\Exporter.cpp(246): } else if
(fs::exists(tmp_result_file.toFilesystemEncoding())) {
D:\devel\lyx\trunk\src\Format.cpp(269): if (filename.empty() ||
!fs::exists(filename.toFilesystemEncoding())) {
D:\devel\lyx\trunk\src\Format.cpp(339): if (filename.empty() ||
!fs::exists(filename.toFilesystemEncoding())) {
D:\devel\lyx\trunk\src\LaTeX.cpp(216): bool had_depfile =
fs::exists(depfile.toFilesystemEncoding());
D:\devel\lyx\trunk\src\LaTeX.cpp(233): if
(!fs::exists(output_file.toFilesystemEncoding())) {
D:\devel\lyx\trunk\src\LaTeX.cpp(294): rerun =
fs::exists(idxfile.toFilesystemEncoding()) &&
D:\devel\lyx\trunk\src\LaTeX.cpp(483): if
(!fs::exists(file2.toFilesystemEncoding()))
D:\devel\lyx\trunk\src\LaTeX.cpp(774): * Wrapper around fs::exists
that can handle invalid file names.
D:\devel\lyx\trunk\src\LaTeX.cpp(776): * before calling fs::exists,
but in practice it is unusable: On windows it
D:\devel\lyx\trunk\src\LaTeX.cpp(783): return
fs::exists(possible_name.toFilesystemEncoding());
D:\devel\lyx\trunk\src\LyX.cpp(988): if
(fs::exists(document_path.toFilesystemEncoding()) &&
D:\devel\lyx\trunk\src\LyX.cpp(1135): return (! fs::exists(absfile))
D:\devel\lyx\trunk\src\LyX.cpp(1148): if (fs::exists(user_support) &&
fs::is_directory(user_support)) {
D:\devel\lyx\trunk\src\LyXFunc.cpp(540): enable = !buf->isUnnamed()
&& fs::exists(buf->fileName())
D:\devel\lyx\trunk\src\LyXFunc.cpp(1155): if
(fs::exists(filename.toFilesystemEncoding())) {
D:\devel\lyx\trunk\src\LyXFunc.cpp(2158): if
(!fs::exists(fullname.toFilesystemEncoding())) {
D:\devel\lyx\trunk\src\LyXFunc.cpp(2250): if
(fs::exists(lyxfile.toFilesystemEncoding()) && fullname != lyxfile) {
D:\devel\lyx\trunk\src\LyXFunc.cpp(2408): if (fs::exists(encoded)
&& fs::is_directory(encoded))
D:\devel\lyx\trunk\src\Session.cpp(81): if
(fs::exists(file.toFilesystemEncoding()) &&
D:\devel\lyx\trunk\src\Session.cpp(136): if
(fs::exists(file.toFilesystemEncoding()) &&
D:\devel\lyx\trunk\src\Session.cpp(191): if
(fs::exists(file.toFilesystemEncoding()) &&
D:\devel\lyx\trunk\src\Session.cpp(272): if
(fs::exists(file.toFilesystemEncoding()) &&
D:\devel\lyx\trunk\src\TextClass.cpp(1017): if (layout_file.empty()
|| !fs::exists(layout_file.toFilesystemEncoding()))
D:\devel\lyx\trunk\src\TextClassList.cpp(197): if
(fs::exists(layout_file.toFilesystemEncoding())) {
D:\devel\lyx\trunk\src\client\client.cpp(92): if
(!fs::exists(dirpath) || !fs::is_directory(dirpath)) {
D:\devel\lyx\trunk\src\client\client.cpp(104): if
(fs::exists(lyxsocket)) {
D:\devel\lyx\trunk\src\frontends\qt4\GuiGraphics.cpp(769): if
(!(fs::exists(encoded_clipdir) && fs::is_directory(encoded_clipdir)))
D:\devel\lyx\trunk\src\insets\InsetInclude.cpp(405): if
(!fs::exists(included_file.toFilesystemEncoding()))
D:\devel\lyx\trunk\src\support\FileMonitor.cpp(93): if
(!fs::exists(pimpl_->filename_.toFilesystemEncoding()))
D:\devel\lyx\trunk\src\support\FileMonitor.cpp(158): if
(!fs::exists(filename_.toFilesystemEncoding())) {
D:\devel\lyx\trunk\src\support\filetools.cpp(163): return
fs::exists(path) && !fs::is_directory(path) && fs::is_readable(path);
D:\devel\lyx\trunk\src\support\filetools.cpp(228): if
(!(fs::exists(encoded_dir) && fs::is_directory(encoded_dir))) {
D:\devel\lyx\trunk\src\support\filetools.cpp(631): if
(fs::exists(encodedname)) {
D:\devel\lyx\trunk\src\support\filetools.cpp(1123): if
(fs::exists(absfile.toFilesystemEncoding()))
D:\devel\lyx\trunk\src\support\filetools.cpp(1168): if
(fs::exists(autosave.toFilesystemEncoding()))
D:\devel\lyx\trunk\src\support\filetools.cpp(1235): if
(fs::exists(file1) && fs::exists(file2)) {
D:\devel\lyx\trunk\src\support\filetools.cpp(1241): } else if
(fs::exists(file1)) {
D:\devel\lyx\trunk\src\support\filetools.cpp(1243): } else if
(fs::exists(file2)) {
D:\devel\lyx\trunk\src\support\Package.cpp(359): if
(fs::exists(path.toFilesystemEncoding()) &&
D:\devel\lyx\trunk\src\support\Package.cpp(365): if
(fs::exists(path.toFilesystemEncoding()) &&
D:\devel\lyx\trunk\src\support\Package.cpp(418): if
(fs::exists(abs_exe_path.toFilesystemEncoding()))
D:\devel\lyx\trunk\src\support\Package.cpp(435): if
(fs::exists(exe_path.toFilesystemEncoding()))
D:\devel\lyx\trunk\src\support\Package.cpp(701): bool const success =
(fs::exists(encoded) && fs::is_directory(encoded));
D:\devel\lyx\trunk\src\tex2lyx\text.cpp(363): if
(fs::exists(makeAbsPath(trial, path).toFilesystemEncoding()))
D:\devel\lyx\trunk\src\tex2lyx\text.cpp(1542): if
(!fs::exists(makeAbsPath(name, path).toFilesystemEncoding())) {
D:\devel\lyx\trunk\src\tex2lyx\text.cpp(1574): if
(fs::exists(makeAbsPath(name, path).toFilesystemEncoding()))
D:\devel\lyx\trunk\src\tex2lyx\text.cpp(2206):
!fs::exists(makeAbsPath(filename, path).toFilesystemEncoding())) {
D:\devel\lyx\trunk\src\tex2lyx\text.cpp(2217): if
(fs::exists(makeAbsPath(filename, path).toFilesystemEncoding())) {
Matching lines: 69 Matching files: 19 Total files searched: 966