~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to lib/fileservice_lib/action.py

  • Committer: wagrant
  • Date: 2008-09-22 23:33:33 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:1058
fileservice_lib.action.action_putfiles: Catch IOErrors when writing
    to normal files, not just when extracting from ZIPs. Lots of
    people were getting them when uploading a file with the same
    name as a directory.

Show diffs side-by-side

added added

removed removed

Lines of Context:
414
414
                dest = open(filepath_local, 'wb')
415
415
                if data is not None:
416
416
                    shutil.copyfileobj(filedata, dest)
417
 
            except OSError:
 
417
            except (OSError, IOError):
 
418
                # TODO: Be more descriptive.
418
419
                goterror = True
419
420
 
420
421
    if goterror: