C2FO / vfs

Pluggable, extensible virtual file system for Go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

location.Exists() checks the wrong directory

funkyshu opened this issue · comments

Exists doesn't check it its location exists, it checks actually is checking if the first entry of its own contents is a directory.
This can be problematic for functions like MoveToFile that checks if the target location exists, and if not, tried to create it. On some servers without sufficient permissions, will return permission denied.