Open lv7777 opened 8 years ago
content_scripts.js:272 PUT https://api.github.com/repos/lv7777/translation/contents/www/google/co/jp/filenamefefe.html 409 (Conflict) { "message": "Sorry, a file exists where you’re trying to create a subdirectory. Choose a new path and try again.", "documentation_url": "https://developer.github.com/v3/repos/contents/" }
content_scripts.js:272 PUT https://api.github.com/repos/lv7777/translation/contents/www/google/co/jp/filenamefefe.html 409 (Conflict)
{ "message": "Sorry, a file exists where you’re trying to create a subdirectory. Choose a new path and try again.", "documentation_url": "https://developer.github.com/v3/repos/contents/" }
contentscript272はgetsha1(username, pass, repo, path, file).then(function ok(shaobj) { のsend()
path +"/"+fileに変えた時
すでにtranslation/www/google/co/jpというファイルが存在している(translation/www/google/co/はディレクトリ)
なのでjpディレクトリを作れなかったんだと思われる。
まあtry catchでまとめてポイでいいんじゃね(適当
contentscript272はgetsha1(username, pass, repo, path, file).then(function ok(shaobj) { のsend()
path +"/"+fileに変えた時
すでにtranslation/www/google/co/jpというファイルが存在している(translation/www/google/co/はディレクトリ)
なのでjpディレクトリを作れなかったんだと思われる。