#include "support/os.h"
#include "support/Systemcall.h"
-#include <boost/filesystem/operations.hpp>
-
using std::find_if;
using std::string;
using std::distance;
using support::token;
namespace Alert = frontend::Alert;
-namespace fs = boost::filesystem;
namespace os = support::os;
namespace {
bool Formats::view(Buffer const & buffer, FileName const & filename,
string const & format_name) const
{
- if (filename.empty() || !fs::exists(filename.toFilesystemEncoding())) {
+ if (filename.empty() || !filename.exists()) {
Alert::error(_("Cannot view file"),
bformat(_("File does not exist: %1$s"),
from_utf8(filename.absFilename())));
bool Formats::edit(Buffer const & buffer, FileName const & filename,
string const & format_name) const
{
- if (filename.empty() || !fs::exists(filename.toFilesystemEncoding())) {
+ if (filename.empty() || !filename.exists()) {
Alert::error(_("Cannot edit file"),
bformat(_("File does not exist: %1$s"),
from_utf8(filename.absFilename())));