Closed davidhellmann closed 4 years ago
The Asset could have a URL - as far as Craft is concerned it is all OK. But there may not be an actual file there (for instance if the file was deleted from the filesystem).
The fileExists filter is actually checking for the "physical" presence of the file at that URL rather than there being an Asset element with a URL property.
Is there actually a file present at that URL?
Yes I know. But with asset.getUrl its always false. When i put asset.getVolume.path ~ asset.filename
it works. It’s a bit weird cause the readme it sounds like you check just the asset like
craft.assets.one().getUrl() | fileExists
or do i miss something? Would be nice when the plugin does the stuff by itself (checking the image path).
@fantasticmachine maybe you can merge this: https://github.com/moresoda/existential/pull/2 :)
Newest Craft. Newsst Plugin.