def clean_endings(self, path):
        """convert windows endings to unix endings
        """
        with file(path) as old:
            lines = old.readlines()
        string = "".join(l.rstrip()+'\n' for l in lines)
        with file(path, 'w') as new: 
            new.write(string)
convert windows endings to unix endings
        
recipes/Python/576643_Recursive_filefolder_cleaner/recipe-576643.py