(fileSystem fs.FS)
| 64 | } |
| 65 | |
| 66 | func getRootDirName(fileSystem fs.FS) string { |
| 67 | rootDirFile, err := fileSystem.Open(".") |
| 68 | if err == nil { |
| 69 | rootDirStat, err := rootDirFile.Stat() |
| 70 | if err == nil { |
| 71 | return rootDirStat.Name() |
| 72 | } |
| 73 | } |
| 74 | |
| 75 | return "" |
| 76 | } |