Skip to content

Commit

Permalink
flashonline use images as default download folder
Browse files Browse the repository at this point in the history
  • Loading branch information
captain committed May 6, 2019
1 parent 2dc5932 commit 759fce3
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -116,8 +116,8 @@ def getImages(path, files):
for media in ['/media/%s' % x for x in os.listdir('/media')] + (['/media/net/%s' % x for x in os.listdir('/media/net')] if os.path.isdir('/media/net') else []):
if not(SystemInfo['HasMMC'] and "/mmc" in media) and os.path.isdir(media):
getImages(media, [os.path.join(media, x) for x in os.listdir(media) if os.path.splitext(x)[1] == ".zip" and box in x])
if "downloaded_images" in os.listdir(media):
media = os.path.join(media, "downloaded_images")
if "images" in os.listdir(media):
media = os.path.join(media, "images")
if os.path.isdir(media) and not os.path.islink(media) and not os.path.ismount(media):
getImages(media, [os.path.join(media, x) for x in os.listdir(media) if os.path.splitext(x)[1] == ".zip" and box in x])
for dir in [dir for dir in [os.path.join(media, dir) for dir in os.listdir(media)] if os.path.isdir(dir) and os.path.splitext(dir)[1] == ".unzipped"]:
Expand Down Expand Up @@ -299,7 +299,7 @@ def checkIfDevice(path, diskstats):

if self.destination:

destination = os.path.join(self.destination, 'downloaded_images')
destination = os.path.join(self.destination, 'images')
self.zippedimage = "://" in self.source and os.path.join(destination, self.imagename) or self.source
self.unzippedimage = os.path.join(destination, '%s.unzipped' % self.imagename[:-4])

Expand Down

1 comment on commit 759fce3

@Schimmelreiter
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:+1

Please sign in to comment.