Fix two bugs with file of type 'link'
Fix two bugs with file of type 'link'

farmisen/flysystem,mhlavac/flysystem,dstockto/flysystem,mhlavac/flysystem,twistor/flysystem,hannesvdvreken/flysystem,nao-pon/flysystem,sohelrana820/flysystem,twistor/flysystem,dshafik/flysystem,sachintaware/flysystem,Amrit01/flysystem