When trying to delete a directory that contains a backslash, all folders that are on the same level as the deleted one are deleted:

rmdir('path/to/folder/folder\\name'); 
  • Still, it is very desirable to get a clarification: you have a folder that is called folder\name right with a slash in its name, right? - andreymal
  • @andreymal yeah .. - Di-
  • Perhaps this will help - stackoverflow.com/a/19462883/6004176 . I can not try - on Windows it is impossible to create such a folder - n.osennij
  • In PHP, to specify a backslash, you need to use 4 \ characters: rmdir('path/to/folder/folder\\\\name'); - Wiktor Stribiżew

0