Giter VIP home page Giter VIP logo

Comments (13)

Sembiance avatar Sembiance commented on August 10, 2024

I see this too, but only when using Chrome and viewing the file directly on Github (https://github.com/Sembiance/mtgjson/blob/master/json/CON.json).

When using Firefox, or cloing the repo and viewing the file on disk, or viewing the file on mtgjson.com in all those cases the file appears just fine.

\You mentioned you got an invalid file handle? Where did you get this? How are you accessing the CON.json file?

from mtgjson3.

abbajbryant avatar abbajbryant commented on August 10, 2024

It happens after downloading the zip and simply trying to copy the json from one folder to another.

from mtgjson3.

Sembiance avatar Sembiance commented on August 10, 2024

I just tried it and it works fine?

wget "http://mtgjson.com/json/CON.zip"
unzip CON.zip
cp CON.json /tmp/

Also looked at the extracted CON.json file and it looks just fine. Could you elaborate a bit with maybe some steps that I can use to reproduce the issue you are seeing?

from mtgjson3.

abbajbryant avatar abbajbryant commented on August 10, 2024

I grabbed the zip from github - viewed it's contents and copied the entire contents of the json folder to another folder.

This is all on windows 8.1 although I doubt it is an OS encoding issue.

@edit: for clarity, that is the message in the windows copy file dialog. "Invalid file handle."

from mtgjson3.

Sembiance avatar Sembiance commented on August 10, 2024

Hrm, it works ok for me on Linux, I'll check Windows soon.

wget "https://github.com/Sembiance/mtgjson/archive/master.zip"
unzip master.zip
cd mtgjson-master
cp -rv json /tmp

from mtgjson3.

Sembiance avatar Sembiance commented on August 10, 2024

By the way, I just added zip files to MTGJSON.com that contain all the individual .json files and the -x.json files. That way you won't need to download from GitHub anymore.

The JSON files you were using from GitHub include the extras, so this is the zip you want from MTGJSON: http://mtgjson.com/json/AllSetFiles-x.zip

from mtgjson3.

Sembiance avatar Sembiance commented on August 10, 2024

Ahhh, figured it out! It's a Windows problem. They don't allow any files with the name CON.

http://superuser.com/questions/86999/unable-to-rename-a-folder-or-a-file-as-con

I suppose I could create some zip files specifically for those folks using windows... hrm....

from mtgjson3.

abbajbryant avatar abbajbryant commented on August 10, 2024

For real?

from mtgjson3.

Sembiance avatar Sembiance commented on August 10, 2024

Yup, for real.

CON is a reserved name in Windows. So are PRN, AUX, NUL, LPT1 and others.

from mtgjson3.

abbajbryant avatar abbajbryant commented on August 10, 2024

Maybe prefix the files with an underscore? That's what I did @ my end.

from mtgjson3.

Sembiance avatar Sembiance commented on August 10, 2024

Yah, I can certainly add an underscore prefix or suffix, but I'd only really want to do that for Windows users as I don't want to inconvenience Linux and MacOS X users.

from mtgjson3.

aeosynth avatar aeosynth commented on August 10, 2024

mws / magiccards has it as CFX: http://magiccards.info/cfx/en.html

from mtgjson3.

Sembiance avatar Sembiance commented on August 10, 2024

According to Gatherer, the official code is CON. I'll be creating some Windows specific links shorty.

from mtgjson3.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.