Comments (13)
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.
It happens after downloading the zip and simply trying to copy the json from one folder to another.
from mtgjson3.
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.
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.
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.
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.
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.
For real?
from mtgjson3.
Yup, for real.
CON is a reserved name in Windows. So are PRN, AUX, NUL, LPT1 and others.
from mtgjson3.
Maybe prefix the files with an underscore? That's what I did @ my end.
from mtgjson3.
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.
mws / magiccards has it as CFX: http://magiccards.info/cfx/en.html
from mtgjson3.
According to Gatherer, the official code is CON. I'll be creating some Windows specific links shorty.
from mtgjson3.
Related Issues (20)
- layout and names incorrect for Zndrsplt, Eye of Wisdom and Okaun, Eye of Chaos HOT 2
- Arena promos (pARL) release dates are wrong HOT 1
- Host is supertype, not type HOT 1
- Un-card legalities are inconsistent HOT 1
- Inconsistent use of setcode "ALL" HOT 2
- Same card, different mana cost HOT 2
- Color indicator is missing HOT 1
- Cards missing from pHHO and ARC HOT 2
- Fate Reforged Clash Pack Typo HOT 1
- B.F.M. (Big Furry Monster, Right Side) has duplicate entry in AllSets.json HOT 1
- Overgrown Tomb and Temple Garden missing cipt HOT 4
- Zndrsplt & Okaun layout set to "flip" HOT 1
- Please use ASCII subtract for loyalty costs HOT 2
- Some Battlebond partner cards have layout 'Flip' HOT 2
- Create version.json file for MTGJSONv4 HOT 1
- Teferi, Hero of Dominaria out of date HOT 1
- "aftermath" card layout type is gone, now "split" type HOT 5
- GRN guild kits HOT 1
- Righteous Blow's Printings Missing GRN HOT 4
- Bloated file size HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mtgjson3.