Check if path exists

This commit is contained in:
NicoHood 2016-01-17 12:15:43 +01:00
parent ca90bbf90c
commit 491f74c032

View file

@ -555,6 +555,10 @@ if __name__ == '__main__':
parser.add_argument('path') parser.add_argument('path')
result = parser.parse_args() result = parser.parse_args()
if not os.path.isdir(result.path):
print "Error finding IPod directory. Maybe it is not connected or mounted?"
sys.exit()
if result.rename_unicode: if result.rename_unicode:
check_unicode(result.path) check_unicode(result.path)