Throw an exception when creating a `File` object for a path that isn't a file
Throw an exception when creating a `File` object for a path that isn't a file

This exception is getting thrown inside of `Project.scan` when it incorrectly parses a path with newlines in it. But the exception gets swallowed by ChildProcess.exec. At least it prevents a file from being created that we don't end up unsubscribing from. But `Project.scan` needs to be improved.

AlexxNica/atom,john-kelly/atom,tanin47/atom,elkingtonmcb/atom,Ju2ender/atom,t9md/atom,rsvip/aTom,transcranial/atom,scippio/atom,mostafaeweda/atom,me-benni/atom,acontreras89/atom,decaffeinate-examples/atom,nrodriguez13/atom,mdumrauf/atom,mertkahyaoglu/atom,bolinfest/atom,niklabh/atom,rmartin/atom,yangchenghu/atom,mostafaeweda/atom,john-kelly/atom,Austen-G/BlockBuilder,rjattrill/atom,rookie125/atom,execjosh/atom,palita01/atom,lovesnow/atom,brumm/atom,ironbox360/atom,boomwaiza/atom,omarhuanca/atom,Mokolea/atom,liuderchi/atom,crazyquark/atom,nucked/atom,fscherwi/atom,Neron-X5/atom,einarmagnus/atom,githubteacher/atom,beni55/atom,rjattrill/atom,chengky/atom,codex8/atom,alexandergmann/atom,jeremyramin/atom,BogusCurry/atom,devoncarew/atom,me6iaton/atom,mostafaeweda/atom,Jdesk/atom,vinodpanicker/atom,Austen-G/BlockBuilder,deepfox/atom,stinsonga/atom,Jdesk/atom,dijs/atom,deoxilix/atom,NunoEdgarGub1/atom,abe33/atom,transcranial/atom,dsandstrom/atom,jtrose2/atom,russlescai/atom,dsandstrom/atom,sxgao3001/atom,medovob/atom,kdheepak89/atom,anuwat121/atom,hharchani/atom,jacekkopecky/atom,russlescai/atom,oggy/atom,ykeisuke/atom,ObviouslyGreen/atom,t9md/atom,devmario/atom,einarmagnus/atom,kdheepak89/atom,Sangaroonaom/atom,yomybaby/atom,mnquintana/atom,lovesnow/atom,splodingsocks/atom,dannyflax/atom,Jonekee/atom,phord/atom,YunchengLiao/atom,MjAbuz/atom,hharchani/atom,h0dgep0dge/atom,bsmr-x-script/atom,ivoadf/atom,Arcanemagus/atom,darwin/atom,sebmck/atom,synaptek/atom,daxlab/atom,crazyquark/atom,yamhon/atom,AlexxNica/atom,me6iaton/atom,tanin47/atom,hagb4rd/atom,stinsonga/atom,splodingsocks/atom,Shekharrajak/atom,githubteacher/atom,kc8wxm/atom,Neron-X5/atom,brettle/atom,originye/atom,qskycolor/atom,devoncarew/atom,sotayamashita/atom,amine7536/atom,BogusCurry/atom,yamhon/atom,folpindo/atom,PKRoma/atom,einarmagnus/atom,cyzn/atom,ilovezy/atom,Abdillah/atom,john-kelly/atom,medovob/atom,sekcheong/atom,darwin/atom,Rodjana/atom,avdg/atom,tjkr/atom,bolinfest/atom,Jdesk/atom,nucked/atom,qiujuer/atom,erikhakansson/atom,daxlab/atom,codex8/atom,fedorov/atom,phord/atom,sekcheong/atom,Dennis1978/atom,dannyflax/atom,ReddTea/atom,rlugojr/atom,hpham04/atom,RuiDGoncalves/atom,kc8wxm/atom,fredericksilva/atom,hakatashi/atom,fang-yufeng/atom,gisenberg/atom,ppamorim/atom,chfritz/atom,GHackAnonymous/atom,devmario/atom,chfritz/atom,targeter21/atom,paulcbetts/atom,Hasimir/atom,AlbertoBarrago/atom,constanzaurzua/atom,bcoe/atom,fang-yufeng/atom,synaptek/atom,dkfiresky/atom,basarat/atom,bradgearon/atom,helber/atom,ReddTea/atom,brettle/atom,lisonma/atom,bryonwinger/atom,RuiDGoncalves/atom,MjAbuz/atom,Austen-G/BlockBuilder,isghe/atom,gisenberg/atom,sebmck/atom,Jdesk/atom,pombredanne/atom,basarat/atom,kjav/atom,jjz/atom,pengshp/atom,Hasimir/atom,GHackAnonymous/atom,KENJU/atom,ralphtheninja/atom,vjeux/atom,Klozz/atom,ashneo76/atom,DiogoXRP/atom,stinsonga/atom,YunchengLiao/atom,bencolon/atom,YunchengLiao/atom,matthewclendening/atom,Andrey-Pavlov/atom,chengky/atom,decaffeinate-examples/atom,bcoe/atom,ivoadf/atom,FIT-CSE2410-A-Bombs/atom,Jandersoft/atom,AlbertoBarrago/atom,mertkahyaoglu/atom,Jandersolutions/atom,basarat/atom,john-kelly/atom,bryonwinger/atom,phord/atom,charleswhchan/atom,elkingtonmcb/atom,bencolon/atom,abcP9110/atom,tony612/atom,ppamorim/atom,targeter21/atom,jlord/atom,batjko/atom,svanharmelen/atom,hpham04/atom,prembasumatary/atom,Rychard/atom,rxkit/atom,fedorov/atom,vinodpanicker/atom,mertkahyaoglu/atom,sillvan/atom,liuxiong332/atom,fang-yufeng/atom,jtrose2/atom,jjz/atom,0x73/atom,kc8wxm/atom,liuderchi/atom,deepfox/atom,qskycolor/atom,Jandersoft/atom,ObviouslyGreen/atom,ezeoleaf/atom,folpindo/atom,alfredxing/atom,jjz/atom,boomwaiza/atom,jacekkopecky/atom,prembasumatary/atom,panuchart/atom,ReddTea/atom,Neron-X5/atom,gisenberg/atom,hagb4rd/atom,targeter21/atom,liuxiong332/atom,panuchart/atom,KENJU/atom,kittens/atom,Arcanemagus/atom,Sangaroonaom/atom,001szymon/atom,FoldingText/atom,matthewclendening/atom,kevinrenaers/atom,erikhakansson/atom,sotayamashita/atom,charleswhchan/atom,isghe/atom,amine7536/atom,florianb/atom,Galactix/atom,kittens/atom,xream/atom,crazyquark/atom,lovesnow/atom,dijs/atom,ali/atom,NunoEdgarGub1/atom,kc8wxm/atom,ppamorim/atom,deepfox/atom,champagnez/atom,jlord/atom,burodepeper/atom,AlisaKiatkongkumthon/atom,lpommers/atom,bsmr-x-script/atom,bj7/atom,originye/atom,hakatashi/atom,pombredanne/atom,ezeoleaf/atom,RobinTec/atom,synaptek/atom,t9md/atom,CraZySacX/atom,abcP9110/atom,gabrielPeart/atom,brumm/atom,seedtigo/atom,GHackAnonymous/atom,Ingramz/atom,ilovezy/atom,jeremyramin/atom,yamhon/atom,kittens/atom,githubteacher/atom,mnquintana/atom,sekcheong/atom,Neron-X5/atom,tony612/atom,kandros/atom,palita01/atom,boomwaiza/atom,toqz/atom,charleswhchan/atom,champagnez/atom,h0dgep0dge/atom,Jandersolutions/atom,deoxilix/atom,SlimeQ/atom,jlord/atom,kittens/atom,alexandergmann/atom,jacekkopecky/atom,synaptek/atom,toqz/atom,jordanbtucker/atom,Ju2ender/atom,folpindo/atom,RobinTec/atom,G-Baby/atom,tjkr/atom,nvoron23/atom,oggy/atom,bcoe/atom,bencolon/atom,splodingsocks/atom,lisonma/atom,alexandergmann/atom,n-riesco/atom,sxgao3001/atom,tisu2tisu/atom,woss/atom,me6iaton/atom,basarat/atom,Andrey-Pavlov/atom,johnhaley81/atom,rsvip/aTom,matthewclendening/atom,yalexx/atom,xream/atom,rxkit/atom,pombredanne/atom,h0dgep0dge/atom,ReddTea/atom,Andrey-Pavlov/atom,ashneo76/atom,rsvip/aTom,amine7536/atom,fredericksilva/atom,matthewclendening/atom,decaffeinate-examples/atom,jacekkopecky/atom,pombredanne/atom,me-benni/atom,Jandersoft/atom,Hasimir/atom,gabrielPeart/atom,atom/atom,mrodalgaard/atom,ali/atom,codex8/atom,dsandstrom/atom,svanharmelen/atom,FoldingText/atom,execjosh/atom,chfritz/atom,deepfox/atom,codex8/atom,crazyquark/atom,KENJU/atom,g2p/atom,gabrielPeart/atom,jlord/atom,andrewleverette/atom,Galactix/atom,dkfiresky/atom,FoldingText/atom,oggy/atom,YunchengLiao/atom,mertkahyaoglu/atom,FoldingText/atom,scv119/atom,lovesnow/atom,scv119/atom,abcP9110/atom,pkdevbox/atom,qiujuer/atom,CraZySacX/atom,davideg/atom,RobinTec/atom,vinodpanicker/atom,AdrianVovk/substance-ide,sebmck/atom,jjz/atom,sebmck/atom,johnrizzo1/atom,kjav/atom,constanzaurzua/atom,wiggzz/atom,yangchenghu/atom,yomybaby/atom,jacekkopecky/atom,qskycolor/atom,omarhuanca/atom,n-riesco/atom,davideg/atom,kdheepak89/atom,rookie125/atom,qskycolor/atom,atom/atom,fang-yufeng/atom,kandros/atom,Rodjana/atom,Austen-G/BlockBuilder,ironbox360/atom,vcarrera/atom,ReddTea/atom,splodingsocks/atom,GHackAnonymous/atom,helber/atom,florianb/atom,hellendag/atom,transcranial/atom,yangchenghu/atom,RobinTec/atom,dkfiresky/atom,ilovezy/atom,wiggzz/atom,yalexx/atom,sekcheong/atom,ali/atom,synaptek/atom,sebmck/atom,DiogoXRP/atom,Abdillah/atom,RuiDGoncalves/atom,hharchani/atom,Andrey-Pavlov/atom,qskycolor/atom,acontreras89/atom,chengky/atom,fredericksilva/atom,yalexx/atom,tmunro/atom,dkfiresky/atom,matthewclendening/atom,lisonma/atom,hagb4rd/atom,oggy/atom,dannyflax/atom,devoncarew/atom,Klozz/atom,efatsi/atom,seedtigo/atom,Galactix/atom,gontadu/atom,kdheepak89/atom,GHackAnonymous/atom,hakatashi/atom,sekcheong/atom,ivoadf/atom,SlimeQ/atom,yomybaby/atom,MjAbuz/atom,constanzaurzua/atom,Jandersolutions/atom,me-benni/atom,Jdesk/atom,tisu2tisu/atom,qiujuer/atom,mdumrauf/atom,vcarrera/atom,h0dgep0dge/atom,ali/atom,targeter21/atom,001szymon/atom,Jonekee/atom,pombredanne/atom,prembasumatary/atom,Locke23rus/atom,DiogoXRP/atom,efatsi/atom,vjeux/atom,devoncarew/atom,AlbertoBarrago/atom,bryonwinger/atom,Locke23rus/atom,hakatashi/atom,ObviouslyGreen/atom,chengky/atom,rjattrill/atom,beni55/atom,florianb/atom,vhutheesing/atom,cyzn/atom,harshdattani/atom,rsvip/aTom,tanin47/atom,gisenberg/atom,g2p/atom,yalexx/atom,tisu2tisu/atom,ardeshirj/atom,mrodalgaard/atom,rlugojr/atom,Hasimir/atom,batjko/atom,rmartin/atom,fredericksilva/atom,hpham04/atom,sxgao3001/atom,niklabh/atom,Abdillah/atom,russlescai/atom,tony612/atom,codex8/atom,xream/atom,ralphtheninja/atom,NunoEdgarGub1/atom,Klozz/atom,jordanbtucker/atom,pengshp/atom,yomybaby/atom,vjeux/atom,russlescai/atom,dsandstrom/atom,Austen-G/BlockBuilder,nvoron23/atom,davideg/atom,n-riesco/atom,batjko/atom,ppamorim/atom,hellendag/atom,prembasumatary/atom,woss/atom,florianb/atom,Ingramz/atom,vcarrera/atom,andrewleverette/atom,rsvip/aTom,deepfox/atom,scippio/atom,dannyflax/atom,liuderchi/atom,dannyflax/atom,Shekharrajak/atom,paulcbetts/atom,kandros/atom,mostafaeweda/atom,ilovezy/atom,n-riesco/atom,SlimeQ/atom,jtrose2/atom,omarhuanca/atom,MjAbuz/atom,Ju2ender/atom,devmario/atom,bradgearon/atom,abcP9110/atom,Andrey-Pavlov/atom,qiujuer/atom,kevinrenaers/atom,mnquintana/atom,omarhuanca/atom,jjz/atom,rjattrill/atom,bryonwinger/atom,niklabh/atom,stuartquin/atom,YunchengLiao/atom,bolinfest/atom,tony612/atom,alfredxing/atom,G-Baby/atom,kittens/atom,scv119/atom,abcP9110/atom,fscherwi/atom,scv119/atom,ironbox360/atom,0x73/atom,hpham04/atom,Sangaroonaom/atom,vhutheesing/atom,G-Baby/atom,acontreras89/atom,russlescai/atom,pkdevbox/atom,vcarrera/atom,seedtigo/atom,kjav/atom,toqz/atom,atom/atom,devmario/atom,Ju2ender/atom,Jandersolutions/atom,woss/atom,cyzn/atom,jtrose2/atom,alfredxing/atom,gzzhanghao/atom,einarmagnus/atom,NunoEdgarGub1/atom,deoxilix/atom,mnquintana/atom,Jonekee/atom,amine7536/atom,Neron-X5/atom,lisonma/atom,MjAbuz/atom,Huaraz2/atom,Jandersoft/atom,bcoe/atom,kaicataldo/atom,medovob/atom,fscherwi/atom,mdumrauf/atom,rmartin/atom,gzzhanghao/atom,dannyflax/atom,dkfiresky/atom,Galactix/atom,florianb/atom,Huaraz2/atom,sillvan/atom,execjosh/atom,fedorov/atom,oggy/atom,woss/atom,pkdevbox/atom,dsandstrom/atom,isghe/atom,rmartin/atom,jordanbtucker/atom,yalexx/atom,darwin/atom,rmartin/atom,lovesnow/atom,vinodpanicker/atom,bsmr-x-script/atom,ralphtheninja/atom,kaicataldo/atom,Rychard/atom,Rychard/atom,bcoe/atom,constanzaurzua/atom,palita01/atom,001szymon/atom,panuchart/atom,isghe/atom,AlisaKiatkongkumthon/atom,svanharmelen/atom,FIT-CSE2410-A-Bombs/atom,liuxiong332/atom,kdheepak89/atom,g2p/atom,basarat/atom,lisonma/atom,woss/atom,Austen-G/BlockBuilder,erikhakansson/atom,kc8wxm/atom,ykeisuke/atom,hharchani/atom,abe33/atom,ppamorim/atom,nrodriguez13/atom,elkingtonmcb/atom,PKRoma/atom,devoncarew/atom,rlugojr/atom,omarhuanca/atom,nvoron23/atom,Dennis1978/atom,rxkit/atom,avdg/atom,hharchani/atom,decaffeinate-examples/atom,ardeshirj/atom,jeremyramin/atom,Shekharrajak/atom,bj7/atom,liuderchi/atom,Galactix/atom,ashneo76/atom,rookie125/atom,champagnez/atom,burodepeper/atom,lpommers/atom,sillvan/atom,batjko/atom,gontadu/atom,tmunro/atom,ilovezy/atom,nvoron23/atom,gontadu/atom,kjav/atom,paulcbetts/atom,Shekharrajak/atom,fedorov/atom,efatsi/atom,pengshp/atom,scippio/atom,Rodjana/atom,Mokolea/atom,Dennis1978/atom,Ju2ender/atom,hagb4rd/atom,Hasimir/atom,kaicataldo/atom,NunoEdgarGub1/atom,0x73/atom,lpommers/atom,mnquintana/atom,nucked/atom,isghe/atom,vjeux/atom,stuartquin/atom,Jandersolutions/atom,helber/atom,andrewleverette/atom,jacekkopecky/atom,me6iaton/atom,dijs/atom,tjkr/atom,liuxiong332/atom,ykeisuke/atom,daxlab/atom,jlord/atom,wiggzz/atom,basarat/atom,vhutheesing/atom,johnhaley81/atom,vcarrera/atom,batjko/atom,harshdattani/atom,Huaraz2/atom,KENJU/atom,hellendag/atom,n-riesco/atom,BogusCurry/atom,Abdillah/atom,sxgao3001/atom,qiujuer/atom,anuwat121/atom,originye/atom,charleswhchan/atom,mrodalgaard/atom,brumm/atom,Jandersoft/atom,brettle/atom,AlexxNica/atom,devmario/atom,mertkahyaoglu/atom,kevinrenaers/atom,nrodriguez13/atom,AlisaKiatkongkumthon/atom,SlimeQ/atom,AdrianVovk/substance-ide,chengky/atom,johnrizzo1/atom,anuwat121/atom,sxgao3001/atom,crazyquark/atom,SlimeQ/atom,davideg/atom,tony612/atom,Arcanemagus/atom,einarmagnus/atom,acontreras89/atom,charleswhchan/atom,abe33/atom,johnhaley81/atom,sillvan/atom,Ingramz/atom,beni55/atom,FoldingText/atom,fang-yufeng/atom,hagb4rd/atom,me6iaton/atom,Locke23rus/atom,Abdillah/atom,bradgearon/atom,acontreras89/atom,tmunro/atom,sotayamashita/atom,davideg/atom,ezeoleaf/atom,nvoron23/atom,toqz/atom,ezeoleaf/atom,avdg/atom,jtrose2/atom,stinsonga/atom,john-kelly/atom,0x73/atom,ardeshirj/atom,johnrizzo1/atom,amine7536/atom,liuxiong332/atom,constanzaurzua/atom,FoldingText/atom,toqz/atom,bj7/atom,ali/atom,harshdattani/atom,hpham04/atom,gzzhanghao/atom,prembasumatary/atom,kjav/atom,yomybaby/atom,RobinTec/atom,FIT-CSE2410-A-Bombs/atom,KENJU/atom,vinodpanicker/atom,Shekharrajak/atom,AdrianVovk/substance-ide,stuartquin/atom,PKRoma/atom,fedorov/atom,Mokolea/atom,CraZySacX/atom,fredericksilva/atom,paulcbetts/atom,sillvan/atom,mostafaeweda/atom,vjeux/atom,burodepeper/atom,targeter21/atom,gisenberg/atom