Add function for get filename expansion

add new function