MCPcopy
hub / github.com/filebrowser/filebrowser / RealPath

Method RealPath

files/file.go:209–220  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

207}
208
209func (i *FileInfo) RealPath() string {
210 if realPathFs, ok := i.Fs.(interface {
211 RealPath(name string) (fPath string, err error)
212 }); ok {
213 realPath, err := realPathFs.RealPath(i.Path)
214 if err == nil {
215 return realPath
216 }
217 }
218
219 return i.Path
220}
221
222func (i *FileInfo) detectType(modify, saveContent, readHeader bool, calcImgRes bool) error {
223 if IsNamedPipe(i.Mode) {

Callers 8

tusPostHandlerFunction · 0.95
tusHeadHandlerFunction · 0.95
tusPatchHandlerFunction · 0.95
tusDeleteHandlerFunction · 0.95
previewCacheKeyFunction · 0.45
resource.goFile · 0.45

Calls

no outgoing calls