Skip to content
This repository has been archived by the owner on Feb 4, 2019. It is now read-only.

Cannot remove the file #401

Open
ForNeVeR opened this issue Nov 25, 2015 · 2 comments
Open

Cannot remove the file #401

ForNeVeR opened this issue Nov 25, 2015 · 2 comments

Comments

@ForNeVeR
Copy link
Contributor

It seems that our rm have some troubles deleting ordinary files from the file system.

PASH /tmp> touch 123
PASH /tmp> ls 123

Exists            : True
Name              : 123
IsReadOnly        : False
...

PASH /tmp> rm 123
The item at path '/tmp/123' has child items. Use recursion to remove it
  +CategoryInfo: NotSpecified, Reason: PSInvalidOperationException
  +FullyQualifiedErrorId: PSInvalidOperationException,

sh works in this case:

PASH /tmp> sh -c 'rm 123'
@sburnicki
Copy link
Member

This seems to result from wrong logic in the FileSystemProvider's HasChildItem method. Feel free to try to fix it and add your test :) (I'm currently on long-term vacation, so I have no time for this ;))

@ForNeVeR
Copy link
Contributor Author

ForNeVeR commented Dec 2, 2015

@sburnicki no problems. I've just installed Pash from our shiny new official nixos package and started to document issues I face while using it in my environment.

I think I'll start fixing these issues in a couple of days.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants