A folder was created ending with a period and now can't be deleted

Comments

5 comments

  • Avatar
    Dana Anderson

    Hello, Steve. 

    You can delete a file with a "." using the following command

    del /s "\\?\<File path>"

    If it's a folder 

    rd /s "\\?\<Folder or Filepath>"

    The funny thing is this is a capability we specifically added in a prior bug fix. We had a few customers asking to allow periods. 

    While we could disallow this, the path is valid in Windows and can be accessed from clients that properly escapes the path.

    We will have to do further research here, but this currently functions as intended. Many clients have issues with these paths, but they aren’t invalid. Windows will allow you to create the path from the command line if the path is escaped in a special way.

    For example, you can create the directory in Windows from the command line with this command:

    md "\\?\c:\ftproot\folder_period_end."

    Cerberus is able to create and manipulate files and folders in these paths just fine, but many applications aren’t.

    I will pass this along to development for review. 

    0
    Comment actions Permalink
  • Avatar
    Steve Hoyer

    Thanks Dana,

    I could have sworn I had tried that, but I think at the time I was envisioning a space at the end of the directory name being the problem. I'd found the same solution here...https://social.technet.microsoft.com/Forums/en-US/be3fe04d-e725-4199-828c-30eef70fcf95/unable-to-delete-folder-could-not-find-this-item?forum=winserver8gen...but didn't go back and try the "rd" again once I figured out it was the period not an invisible space at the end of the name.

    However, from within the HTTPS interface, I cannot delete the folder. It says deleted at the top, but doesn't actually remove the directory, which in this case is empty.

    We are up to date with the releases.

    Current

    11.0.8.0, 64-bit

    Thanks,

    Steve

     

    0
    Comment actions Permalink
  • Avatar
    Dana Anderson

    Hey, Steve. 

     

    Let me do some testing on my end here. I will get back to you ASAP. 

     

     

    0
    Comment actions Permalink
  • Avatar
    Steve Hoyer

    Hi Dana,

    In case it makes a difference, the underlying folders in which these folders are created are encrypted at the OS level.

    Steve 

     

    0
    Comment actions Permalink
  • Avatar
    Steve Hoyer

    Hi Dana,

    We had this happen again with one of our police agencies. Any chance we can get a switch to turn the trailing period ability off? Should I put in a feature request?

    Steve

    0
    Comment actions Permalink

Please sign in to leave a comment.