bugfix: RemoveAll when i RemoveAll lib directory, it also Removed libs directory - afero - [fork] go afero port for 9front
 (HTM) git clone git@git.drkhsh.at/afero.git
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 061c13d75ba8fafdeb5d3e3cd1c1fe0ba19a0f3f
 (DIR) parent 949437f3b7e2f3ca7ad553780aec516d0fc310d2
 (HTM) Author: yearnfar <yearnfar@gmail.com>
       Date:   Mon, 15 Nov 2021 00:13:11 +0800
       
       bugfix: RemoveAll
       when i RemoveAll lib directory, it also Removed libs directory
       
       Diffstat:
         M memmap.go                           |       2 +-
       
       1 file changed, 1 insertion(+), 1 deletion(-)
       ---
 (DIR) diff --git a/memmap.go b/memmap.go
       @@ -279,7 +279,7 @@ func (m *MemMapFs) RemoveAll(path string) error {
                defer m.mu.RUnlock()
        
                for p := range m.getData() {
       -                if strings.HasPrefix(p, path) {
       +                if p == path || strings.HasPrefix(p, path+FilePathSeparator) {
                                m.mu.RUnlock()
                                m.mu.Lock()
                                delete(m.getData(), p)