Jiepai icon indicating copy to clipboard operation
Jiepai copied to clipboard

OSError: [WinError 123] 文件名、目录名或卷标语法不正确。

Open Lovesakura opened this issue 5 years ago • 4 comments

OSError: [WinError 123] 文件名、目录名或卷标语法不正确。 : 'img\\男士街拍 三百八十五期 | 梁靖康的街拍look' """ The above exception was the direct cause of the following exception

Lovesakura avatar Aug 06 '19 08:08 Lovesakura

请问你解决这个问题了吗?我也遇到了,不知怎么改。。。

binProg avatar Aug 23 '19 02:08 binProg

没有,应该是下载的文件有个名字重命名后语法不正确,导致异常。

binProg [email protected] 于2019年8月23日周五 上午10:49写道:

请问你解决这个问题了吗?我也遇到了,不知怎么改。。。

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/Python3WebSpider/Jiepai/issues/22?email_source=notifications&email_token=AI5ALT3YVCQDVY2XYJP4D73QF5F4HA5CNFSM4IJTULB2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD466Y5I#issuecomment-524151925, or mute the thread https://github.com/notifications/unsubscribe-auth/AI5ALTZMO6VHJCX6KXAETQ3QF5F4HANCNFSM4IJTULBQ .

Lovesakura avatar Aug 27 '19 15:08 Lovesakura

windows上有些符号不能做文件夹名字(比如你这个名字里有"|"),获取title以后,用正则把这些不能做文件夹名字的符号替换掉就好了

M45ter avatar Sep 23 '19 09:09 M45ter

有些符号不能当做文件名,解决办法:将创建文件夹的代码做异常处理

ttmars avatar Nov 22 '19 09:11 ttmars