Changed file api to get relative path of files