1
mr-user
30d

I decided to delete Apache Zookeeper on my Windows system but I cannot delete

1)CreateTxn.
2)DeleteTxn.
3)SetACLTxn.
4)TxnHeader.

in "docs\apidocs\zookeeper-jute\org\apache\zookeeper\txn\class-use"

It should be easy to delete but Windows said it cannot delete the file. I try to delete using command prompt but it said access denied.

Comments
  • 1
    Dunno if this is a zookeeper problem, or a windows problem. MS of late seems to be of the opinion that the operating system is theirs and you're just a guest on it.
  • 1
    @SortOfTested

    I found a way to delete it.

    I use "WinRar" with admin privilege and add the folder to the archive.

    I told the "WinRar" to delete the file after archiving. Now I have ".rar" file which I can delete correctly.

    What make the "WinRar" different from Windows file manager?
  • 1
    @mr-user
    It's likely using better APIs ( https://docs.microsoft.com/en-us/... )

    Give del /f a try next time while running as administrator. Most file managers are just a convenience feature.
  • 0
    @SortOfTested

    I had try "del /f" , its just said.

    "Could Not Find G:\Program\tmp\apache-zookeeper-3.5.7-bin\apache-zookeeper-3.5.7-bin\docs\apidocs\zookeeper-jute\org\apache\zookeeper\txn\class-use\CreateTxn."
  • 0
    @mr-user
    Did you check if the files were symlinks? Delegate sessions don't have permissions to muck with symlinks under windows.
  • 0
    use two dots at the end?
  • 1
    @SortOfTested

    By symlinks do you mean "shortcut" ? I think the file are not short cut.

    The strange thing is that file don't have any extension. It just end with period (.) , maybe that is why it is messing up the Windows file system.

    To be honest with you I don't understand your second sentence. I am using Admin account.
  • 0
    @mr-user
    No, a symlink is a symbolic link. A shortcut is a file. Mklink can produce either.
  • 0
    @SortOfTested

    I just research "symbolic link" , I think it is not symlink
  • 0
    Seeing what you've posted, this feels like a file name length issue. Robocopy to NUL. That's the standard way as it uses the appropriate APIs.
  • 0
  • 1
    It could have been a bug since it said it could not find the files
  • 1
    The dot at the end could be the culprit. Usage of old, quirky APIs is ubiquitous in Windows.
  • 0
    "Windows.."

    Well there's your problem right there.
Add Comment