func FilesystemDirectoryFromIDWithPath(ctx context.Context, rep repo.Repository, rootID string, consistentAttributes bool) (fs.Directory, error) {
	e, err := FilesystemEntryFromIDWithPath(ctx, rep, rootID, consistentAttributes)
	if err != nil {
		return nil, err
	}

	if dir, ok := e.(fs.Directory); ok {
		return dir, nil
	}

	return nil, errors.Errorf("%v is not a directory object", rootID)
}
// FilesystemDirectoryFromIDWithPath returns a filesystem directory entry for the provided object ID, which
// can be a snapshot manifest ID or an object ID with path.
FilesystemDirectoryFromIDWithPath returns a filesystem directory entry for the provided object ID, which
can be a snapshot manifest ID or an object ID with path.
// FilesystemDirectoryFromIDWithPath returns a filesystem directory entry for the provided object ID which // can be a snapshot manifest ID or an object ID with path .
func FilesystemDirectoryFromIDWithPath(ctx context.Context, rep repo.Repository, rootID string, consistentAttributes bool) (fs.Directory, error) {
	e, err := FilesystemEntryFromIDWithPath(ctx, rep, rootID, consistentAttributes)
	if err != nil {
		return nil, err
	}
	if dir, ok := e.(fs.Directory); ok {
		return dir, nil
	}
	return nil, errors.Errorf("%v is not a directory object", rootID)
}
func FilesystemDirectoryFromIDWithPath ( ctx context . Context , rep repo . Repository , rootID string , consistentAttributes bool ) ( fs . Directory , error ) { e , err := FilesystemEntryFromIDWithPath ( ctx , rep , rootID , consistentAttributes ) if err != nil { return nil , err } if dir , ok := e . ( fs . Directory ) ; ok { return dir , nil } return nil , errors . Errorf ( " " , rootID ) }
FilesystemDirectoryFromIDWithPath returns a filesystem directory entry for the provided object ID, which
can be a snapshot manifest ID or an object ID with path.
FilesystemDirectoryFromIDWithPath returns a filesystem directory entry for the provided object ID which can be a snapshot manifest ID or an object ID with path .