seandenigris / Resources-Live

GNU General Public License v3.0
4 stars 0 forks source link

Guaranteed Unique Filenames #5

Closed seandenigris closed 8 years ago

seandenigris commented 8 years ago

For now, we just have a #deny: check in #import: to ensure destination file doesn't already exist. If in the future, we do a counter or UUID, the files can be updated with e.g.:

self collect: [ :e | | destination |
    destination := e file parent / RlResources library nextID asString, e file extension ].

I asked about UUIDs on Pharo Users and Peter Uhnák seemed to think they are robust, including across platforms and images.

seandenigris commented 8 years ago

Fixed by 45f7f10