File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff 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.
427429func (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.
445449func (p * Path ) Symlink (target * Path ) error {
446450 symlinker , ok := p .fs .(afero.Linker )
447451 if ! ok {
You can’t perform that action at this time.
0 commit comments