Implementation for glob path

@t32k Please review this.