// IsDir check if this is a valid directory
IsDir check if this is a valid directory
// IsDir check if this is a valid directory
func (s S3Fs) IsDir(path string) (bool, error) {
	_, err := s.client.ListObjects(&s3.ListObjectsInput{
		Bucket: aws.String(s.Bucket),
		Prefix: aws.String(path),
	})
	if err != nil {
		return false, err
	}
	return true, nil
}
func ( s S3Fs ) IsDir ( path string ) ( bool , error ) { _ , err := s . client . ListObjects ( & s3 . ListObjectsInput { Bucket : aws . String ( s . Bucket ) , Prefix : aws . String ( path ) , } ) if err != nil { return false , err } return true , nil }
IsDir check if this is a valid directory
IsDir check if this is a valid directory