file_name_is_absolute filename
filename
Takes a path as argument and returns true if it is an absolute path.