lib/fs: Try to remove read only Windows files (fixes #3744) (#8650)

This happens when folders contain a custom icon.

Co-authored-by: Alexandre Alves <alexandrealvesdb.contact@gmail.com>
This commit is contained in:
Jakob Borg
2022-11-07 21:33:17 +01:00
committed by GitHub
co-authored by Alexandre Alves
parent 5e384c9185
commit a29605750d
4 changed files with 46 additions and 8 deletions
-8
View File
@@ -178,14 +178,6 @@ func (f *BasicFilesystem) Lstat(name string) (FileInfo, error) {
return basicFileInfo{fi}, err
}
func (f *BasicFilesystem) Remove(name string) error {
name, err := f.rooted(name)
if err != nil {
return err
}
return os.Remove(name)
}
func (f *BasicFilesystem) RemoveAll(name string) error {
name, err := f.rooted(name)
if err != nil {