You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I'm having this issue which I do use the spider options.
no paths defined in config, crawling from site root
creating new spider file
/usr/local/lib/ruby/2.1.0/fileutils.rb:250:in `mkdir': File name too long @ dir_s_mkdir - shots_nojs/thumbnails/ar__content%d8%b4%d8%b1%d9%83%d8%a9-agip-%d9%87%d9%8a-%d9%85%d8%b3%d8%ac%d9%84-%d9%85%d8%b9%d8%aa%d9%85%d8%af-%d8%ac%d8%af%d9%8a%d8%af-%d9%84%d8%af%d9%8a%d9%86%d8%a7-%d9%84%d9%84%d9%86%d8%b7%d8%a7%d9%82%d8%a7%d8%aa-%d8%a7%d9%84%d9%82%d8%b7%d8%b1%d9%8a%d8%a9-comqa-%d9%88-netqa-%d9%88-nameqa-%d9%88-qa-%d9%88-%d9%82%d8%b7%d8%b1
We do need to Validate and limit the max length of the name and have a Transliterate UTF-8 characters to ASCII before Creating of files and directories
This sample code could help to get the case when we run the spider.
#!/usr/bin/env rubyrequire'thor'require"babosa"classDirWorker < ThorincludeThor::Actionsdefself.source_rootFile.expand_path("../../../",__FILE__)enddesc"create NAME","To create a directory"defcreate_directory(name)FileUtils.mkdir_p(name.to_slug.transliterate.truncate_bytes(100).to_s)endendDirWorker.start(ARGV)
If we run this command:
ruby DirWorker.rb create "ar__content%d8%b4%d8%b1%d9%83%d8%a9-agip-%d9%87%d9%8a-%d9%85%d8%b3%d8%ac%d9%84-%d9%85%d8%b9%d8%aa%d9%85%d8%af-%d8%ac%d8%af%d9%8a%d8%af-%d9%84%d8%af%d9%8a%d9%86%d8%a7-%d9%84%d9%84%d9%86%d8%b7%d8%a7%d9%82%d8%a7%d8%aa-%d8%a7%d9%84%d9%82%d8%b7%d8%b1%d9%8a%d8%a9-comqa-%d9%88-netqa-%d9%88-nameqa-%d9%88-qa-%d9%88-%d9%82%d8%b7%d8%b1"
This will work .. But if we take out truncate_bytes
Thank you.
The text was updated successfully, but these errors were encountered:
My solution for this, we need to add our Validation for the Wraith::FolderManager to transliterate truncate_bytes.
We need to have the transliterate for babosa:
And go and Fork Wraith, then add some custom config functions and load the Arabic transliterate truncate_bytes for where we create or use files and directories.
Hi,
I'm having this issue which I do use the spider options.
no paths defined in config, crawling from site root
creating new spider file
/usr/local/lib/ruby/2.1.0/fileutils.rb:250:in `mkdir': File name too long @ dir_s_mkdir - shots_nojs/thumbnails/ar__content%d8%b4%d8%b1%d9%83%d8%a9-agip-%d9%87%d9%8a-%d9%85%d8%b3%d8%ac%d9%84-%d9%85%d8%b9%d8%aa%d9%85%d8%af-%d8%ac%d8%af%d9%8a%d8%af-%d9%84%d8%af%d9%8a%d9%86%d8%a7-%d9%84%d9%84%d9%86%d8%b7%d8%a7%d9%82%d8%a7%d8%aa-%d8%a7%d9%84%d9%82%d8%b7%d8%b1%d9%8a%d8%a9-comqa-%d9%88-netqa-%d9%88-nameqa-%d9%88-qa-%d9%88-%d9%82%d8%b7%d8%b1
We do need to Validate and limit the max length of the name and have a Transliterate UTF-8 characters to ASCII before Creating of files and directories
This sample code could help to get the case when we run the spider.
If we run this command:
ruby DirWorker.rb create "ar__content%d8%b4%d8%b1%d9%83%d8%a9-agip-%d9%87%d9%8a-%d9%85%d8%b3%d8%ac%d9%84-%d9%85%d8%b9%d8%aa%d9%85%d8%af-%d8%ac%d8%af%d9%8a%d8%af-%d9%84%d8%af%d9%8a%d9%86%d8%a7-%d9%84%d9%84%d9%86%d8%b7%d8%a7%d9%82%d8%a7%d8%aa-%d8%a7%d9%84%d9%82%d8%b7%d8%b1%d9%8a%d8%a9-comqa-%d9%88-netqa-%d9%88-nameqa-%d9%88-qa-%d9%88-%d9%82%d8%b7%d8%b1"
This will work .. But if we take out truncate_bytes
Thank you.
The text was updated successfully, but these errors were encountered: