detect a filer path is a file or a directory
detect a filer path is a file or a directory

fix https://github.com/chrislusf/seaweedfs/issues/1004

chrislusf/seaweedfs,chrislusf/seaweedfs,chrislusf/seaweedfs,chrislusf/seaweedfs