import glob


def getRansomwareFiles(path):
    """ Return all the ransomware files (sorted) from a given path """
    
    try:
        all_file_names = [i for i in glob.glob(str(path) + '/*_labeled.*')]
        all_file_names = sorted(all_file_names)
        
        return all_file_names
    
    except:
        print("Ransomware samples could not be read")
        return