mirror of
https://github.com/nims11/IPod-Shuffle-4g.git
synced 2025-12-07 16:08:00 +09:00
Check if path exists
This commit is contained in:
parent
ca90bbf90c
commit
491f74c032
1 changed files with 4 additions and 0 deletions
|
|
@ -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)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue