Files
cppdraft_translate/cppdraft/fs/op/read/symlink.md
2025-10-25 03:02:53 +03:00

1.1 KiB

[fs.op.read.symlink]

31 Input/output library [input.output]

🔗

path filesystem::read_symlink(const path& p); path filesystem::read_symlink(const path& p, error_code& ec);

1

#

Returns: If p resolves to a symbolic link, a path object containing the contents of that symbolic link.

The signature with argument ec returns path() if an error occurs.

2

#

Throws: As specified in [fs.err.report].

[Note 1:

It is an error if p does not resolve to a symbolic link.

— end note]