is_local overloads

Synopses

Declared in <llvm/Support/FileSystem.h>

Return whether an open file is local, ignoring errors as false.

bool
is_local(int FD);

Return whether Path is on a local filesystem, ignoring errors as false.

bool
is_local(Twine const& Path);

Determine whether an open file is on a local filesystem.

std::error_code
is_local(
    int FD,
    bool& result);

Is the file mounted on a local filesystem?

std::error_code
is_local(
    Twine const& path,
    bool& result);

Return Value

  • True if the open file is on a local filesystem, false otherwise.

  • True if the path is on a local filesystem, false otherwise.

  • errc::success if result has been successfully set, otherwise a platform‐specific error_code.

  • errc::success if result has been successfully set, otherwise a platform specific error_code.

Parameters

Name

Description

FD

Open file descriptor to query.

Path

Input path.

result

Set to true if the file is on fixed local media.

path

Input path.

Created with MrDocs