#1 — Importing from ZIP file on OSX, creates unnecessary files

by Nate Aune last modified Jan 08, 2009 01:34 PM
State Resolved
Version:
Area Process
Issue type Bug
Severity Medium
Submitted by Nate Aune
Submitted on Jan 18, 2006
Responsible Jean-Francois Roche
Target release: 1.0-alpha1




When you import a Zip file that was created on OSX, ATPhoto imports the resource forks as ATPhoto objects and titles them ._whatever, where 'whatever' is the name of the file.

We need to ignore the files that start with a '._' and not create these objects.


This is a general problem with OSX and Zope, and it should really be fixed in Archetypes. The code was in place, but for some reason removed. See this page for more info under the 'WebDAV' topic heading.


Steps to reproduce:

On an OSX machine, create a Zip file using File -> Create Archive of X items. Upload this .zip file from the Import tab. It will create additional unnecessary files (see screenshot).

Attached:
atphoto_screenshot.jpg — JPEG image, 46 kB (47205 bytes)
Added by Jean-Francois Roche on Jan 21, 2006 10:23 AM
Issue state: unconfirmedopen
Target release: None0.1
Responsible manager: (UNASSIGNED)jfroche
Fixed.
Added:

if newfilename[:2] != '._':
   # add photo

We are not using WebDav here. Just extract the photo and invokeFactory for each of them ... maybe not the best way?
Added by Nate Aune on Jan 21, 2006 04:07 PM
Issue state: openresolved
This seems to be fixed now, but for some reason the files say that they're 0 bytes. Adding a new bug #7 for that.

This fix should really show into Archetypes. Sidnei is emailing me with an explanation for why this won't work. Need to test if the ._ files show up when you drag-n-drop a file into Plone via WebDAV/FTP.

No responses can be added.