Skip to content

Commit 70e4153

Browse files
authored
Merge pull request #24 from LandonTClipp/docs
Fixing docs
2 parents f13812b + 9c2bfd2 commit 70e4153

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

path.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,9 +421,11 @@ func (p *Path) RelativeTo(other *Path) (*Path, error) {
421421

422422
// Lstat lstat's the path if the underlying afero filesystem supports it. If
423423
// the filesystem does not support afero.Lstater, or if the filesystem implements
424-
// afero.Lstater but returns false for the "lstat called" return value
424+
// afero.Lstater but returns false for the "lstat called" return value.
425425
//
426426
// A nil os.FileInfo is returned on errors.
427+
//
428+
// THIS METHOD IS NOT TYPE SAFE.
427429
func (p *Path) Lstat() (os.FileInfo, error) {
428430
lStater, ok := p.Fs().(afero.Lstater)
429431
if !ok {
@@ -442,6 +444,8 @@ func (p *Path) Lstat() (os.FileInfo, error) {
442444

443445
// Symlink symlinks to the target location. This will fail if the underlying
444446
// afero filesystem does not implement afero.Linker.
447+
//
448+
// THIS METHOD IS NOT TYPE SAFE.
445449
func (p *Path) Symlink(target *Path) error {
446450
symlinker, ok := p.fs.(afero.Linker)
447451
if !ok {

0 commit comments

Comments
 (0)