Skip to content

Commit

Permalink
change File.String
Browse files Browse the repository at this point in the history
  • Loading branch information
ungerik committed Apr 9, 2024
1 parent 1e6fc3e commit cd0b557
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions file.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,10 @@ func (file File) RawURI() string {
return string(file)
}

// String returns the path and meta information for the File.
// See RawURI to just get the string value of it.
// String returns information about the File and its FileSystem.
// String implements the fmt.Stringer interface.
func (file File) String() string {
return fmt.Sprintf("%s: %s", file.FileSystem().Name(), file.Path())
return fmt.Sprintf("%s (FS: %s)", string(file), file.FileSystem().Name())
}

// URL of the file
Expand Down

0 comments on commit cd0b557

Please sign in to comment.