|Anonymous | Login||08-18-2019 21:04 UTC|
|Main | My View | View Issues | Change Log | Docs|
|Viewing Issue Simple Details [ Jump to Notes ]||[ View Advanced ] [ Issue History ] [ Print ]|
|ID||Category||Severity||Reproducibility||Date Submitted||Last Update|
|0001669||[Squeak] Tools||minor||always||08-12-05 20:05||03-01-06 21:51|
|Summary||0001669: [ENH] DropFilesOnArchiveViewer-as-nk|
"Change Set: DragAndDropToArchiveViewer
Date: 31 October 2003
Author: Adam Spitz
Edited Date: 21 April 2004
Edited By: Ned Konz
Lets you drag-and-drop from the File List to the Archive Viewer.
Original code by Adam Spitz.
Ned Konz changed it to:
* accept dropping of directories too (possible from a FileList).
* remove any leading path components that are shared with the default
directory (also for 'add directory' button).
That is (assuming the default directory is '/home/ned/Squeak'):
- if you drop a file named: '/home/ned/Squeak/xyz/abc' the resultant
file will be called 'xyz/abc'.
- if you drop a directory named: '/home/ned/Squeak/xyz/abc' containing a
file named 'def' then the resultant file will be called 'xyz/abc/def'.
- if you drop a directory named: '/home/ned/xyz/abc' containing a file
named 'def' then the resultant file will be called 'xyz/abc/def'.
- if you drop a directory named: '/abc' containing a file named 'def'
then the resultant file will be called 'abc/def'.
DropFilesOnArchiveViewer-as-nk.cs.gz [^] (2,828 bytes) 08-12-05 20:05
DropFilesOnArchiveViewer-as-nk.2.cs.gz [^] (2,629 bytes) 03-01-06 21:51
(0002317 - 580 - 701 - 747 - 747 - 747 - 747)
Jason Rogers <firstname.lastname@example.org>:
"> That is (assuming the default directory is '/home/ned/Squeak'):
> - if you drop a directory named: '/home/ned/Squeak/xyz/abc' containing a
> file named 'def' then the resultant file will be called 'xyz/abc/def'.
> - if you drop a directory named: '/home/ned/xyz/abc' containing a file
> named 'def' then the resultant file will be called 'xyz/abc/def'.
Are these two correct? I would think that you would end up with these
two files in the archive:
(0002318 - 1278 - 1465 - 1505 - 1505 - 1505 - 1505)
Ned Konz <email@example.com>:
"That's the way it is now. Do you think it should be some other way? The
previous behavior of 'add a directory' was to strip off the directory name
(thereby flattening it); if you added the same directory named
'/home/ned/Squeak/xyz/abc' containing a file named 'def' then the resultant
file would have been called 'abc/def'. A file called
'/home/ned/Squeak/xyz/ghi.jkl' would have been called 'ghi.jkl'.
But I found that when building SAR files manually that it was more useful to
make 'subdirectories' to help organize things. This way if you were unzipping
it somewhere the files wouldn't end up all in the same directory.
> I would think that you would end up with these
> two files in the archive:
> 1. /home/ned/Squeak/xyz/abc/def
> 2. /home/ned/xyz/abc/def
First, you should *never* have absolute paths in a Zip file. Not only is this
against the spec, it's a bad idea for security reasons (though I suspect most
Zip programs ignore the leading slash anyway).
Second, I'm trying to provide the most useful behavior here. Since zips are
used to move files between systems (like the SAR and the project format in
Squeak, for instance), absolute paths to places on my system aren't too
(0002319 - 782 - 942 - 942 - 1039 - 1039 - 1039)
"The changeset DropFilesOnArchiveViewer-as-nk.cs has conflicts with later
Checking DropFilesOnArchiveViewer-as-nk.cs (0005878) for method conflicts
with changesets after 5878hScrollbarFixes2-sps ...
CONFLICT found for ArchiveViewer class>>createButtonBar with newer
changesets 5994-004-systemMod 6003-1007mergeJul2 6023-3021misc
CONFLICT found for ArchiveViewer class>>memberMenu:shifted: with newer
2 conflicts found."
(0002320 - 74 - 74 - 74 - 74 - 74 - 74)
|I loaded this into 3.8-6665-basic without errors but did not test further.|
(0004059 - 98 - 101 - 101 - 101 - 101 - 101)
|rejected: conflicts indicated, original author did not respond --> seems to be unimportant. closed|
(0004271 - 106 - 106 - 106 - 106 - 106 - 106)
|I looked over the change set and resolved the conflicts appropriately for the 3.8 image. Should be OK now.|
|08-12-05 20:05||KenCausey||New Issue|
|08-12-05 20:05||KenCausey||File Added: DropFilesOnArchiveViewer-as-nk.cs.gz|
|08-12-05 20:08||KenCausey||Reporter||KenCausey => ned|
|08-12-05 20:13||KenCausey||Note Added: 0002317|
|08-12-05 20:17||KenCausey||Note Added: 0002318|
|08-12-05 20:20||KenCausey||Note Added: 0002319|
|08-12-05 20:23||KenCausey||Note Added: 0002320|
|02-24-06 21:21||MarcusDenker||Status||new => closed|
|02-24-06 21:21||MarcusDenker||Note Added: 0004059|
|02-24-06 21:21||MarcusDenker||Resolution||open => fixed|
|02-24-06 21:21||MarcusDenker||Fixed in Version||=> 3.9|
|03-01-06 21:27||ned||Assigned To||=> ned|
|03-01-06 21:27||ned||Status||closed => feedback|
|03-01-06 21:27||ned||Resolution||fixed => reopened|
|03-01-06 21:27||ned||Note Added: 0004271|
|03-01-06 21:28||ned||File Added: DropFilesOnArchiveViewer-as-nk.1.cs|
|03-01-06 21:51||ned||File Added: DropFilesOnArchiveViewer-as-nk.2.cs.gz|
|03-01-06 21:51||ned||File Deleted: DropFilesOnArchiveViewer-as-nk.1.cs|
| Mantis 1.0.8[^]
Copyright © 2000 - 2007 Mantis Group
69 total queries executed.|
44 unique queries executed.