Utils file : new function for listing directory