escape whitespaces in linux path and file names
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: i actually cleaning up my system. And as usual i am trying to do it the python way, so i am cleaning up duplicates in my Music library. And now i am trying to find a pattern for re module to escape all whitespace and special characters. But unfortunately i was unable to find something useable. This is some snipped of the duplicates list i generated with linux cli tool called "fdupes" : ./D/dominik eulberg/01 bionik/01 bionik (guy gerber remi.m4p ./D/dominik eulberg/05 dominik eulberg/01 bionik/01 bionik (guy gerber remi.m4p ./N/Nightmares On