# Extract to folder

**URL:** <https://resource.dopus.com/t/extract-to-folder/13348>\
**Category:** Help & Support\
**Created:** [June 13, 2012, 5:55am UTC](https://resource.dopus.com/t/extract-to-folder/13348 "2012-06-13T05:55:24Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![MissEmerelle](https://resource.dopus.com/user_avatar/resource.dopus.com/missemerelle/32/26227_2.png) [@MissEmerelle](https://resource.dopus.com/u/MissEmerelle)\
**Post date:** [June 13, 2012, 5:55am UTC](https://resource.dopus.com/t/extract-to-folder/13348/1 "2012-06-13T05:55:24Z")

</div>

Is there a way to make DOpus check if there is a folder in a zip file and only in this case extract it to a subfolder?

I searched quite around a bit, so far didnt find anything.  
The main reason why I still use other unpackers is because I always need to check if there is a subfolder in the zip; makes a few clicks more than just extract the whole thing.

---

<div class="post-metadata">

**Author:** ![Leo](https://resource.dopus.com/user_avatar/resource.dopus.com/leo/32/69732_2.png) [@Leo](https://resource.dopus.com/u/Leo)\
**Post date:** [June 13, 2012, 7:12am UTC](https://resource.dopus.com/t/extract-to-folder/13348/2 "2012-06-13T07:12:02Z")

</div>

> [@MissEmerelle](#):
>
> Is there a way to make DOpus check if there is a folder in a zip file and only in this case extract it to a subfolder?

Is that the right way around?

Is the aim to always put the extracted things into a sub-folder, while avoiding creating a sub-folder that just contains one more sub-folder?

i.e. If all the files in the zip are below one sub-folder at the top of the zip, don't create an extra folder; otherwise do?

If you don't mean that, could you give us some examples of what you do mean?

---

<div class="post-metadata">

**Author:** ![Xyzzy](https://resource.dopus.com/user_avatar/resource.dopus.com/xyzzy/32/26197_2.png) [@Xyzzy](https://resource.dopus.com/u/Xyzzy)\
**Post date:** [June 13, 2012, 7:13am UTC](https://resource.dopus.com/t/extract-to-folder/13348/3 "2012-06-13T07:13:39Z")

</div>

I think you are right Leo.

I am definitely +1

---

<div class="post-metadata">

**Author:** ![MissEmerelle](https://resource.dopus.com/user_avatar/resource.dopus.com/missemerelle/32/26227_2.png) [@MissEmerelle](https://resource.dopus.com/u/MissEmerelle)\
**Post date:** [June 13, 2012, 7:39am UTC](https://resource.dopus.com/t/extract-to-folder/13348/4 "2012-06-13T07:39:09Z")

</div>

I want DOpus to check, if there is only one folder in the zip, if yes -\> just extract; if no -\> extract to subfolder altogether. I know it is only one click away if it is 2 subfolders, still it makes a difference on a network drive for instance, because it adds to the path length (I have a veeeery "touchy" nas substitute at the time being).  
Sorry for my cumbersome explanation, I didnt sleep last night and then English gives me a knot in the brain^^.

---

<div class="post-metadata">

**Author:** ![Leo](https://resource.dopus.com/user_avatar/resource.dopus.com/leo/32/69732_2.png) [@Leo](https://resource.dopus.com/u/Leo)\
**Post date:** [June 13, 2012, 8:00am UTC](https://resource.dopus.com/t/extract-to-folder/13348/5 "2012-06-13T08:00:47Z")

</div>

Cool, that's what I thought you meant.

We have an option like that for creating archives but not for extracting them. I've filed a feature request into our to-do list.

---

<div class="post-metadata">

**Author:** ![MissEmerelle](https://resource.dopus.com/user_avatar/resource.dopus.com/missemerelle/32/26227_2.png) [@MissEmerelle](https://resource.dopus.com/u/MissEmerelle)\
**Post date:** [June 13, 2012, 2:12pm UTC](https://resource.dopus.com/t/extract-to-folder/13348/6 "2012-06-13T14:12:44Z")

</div>

Thanks Leo, that would definitely be a very useful feature (I know some download manager is capable of this, but I'm not sure if that info is of any use to you).

---

<div class="post-metadata">

**Author:** ![steje](https://resource.dopus.com/user_avatar/resource.dopus.com/steje/32/26008_2.png) [@steje](https://resource.dopus.com/u/steje)\
**Post date:** [June 15, 2012, 3:07pm UTC](https://resource.dopus.com/t/extract-to-folder/13348/7 "2012-06-15T15:07:33Z")

</div>

In principal, I agree this would be valuable - but it's only something "I" would use if it were done in such a way that Opus would only skip creating the new base folder if the single folder inside the root of the archive was the same base name as the archive file itself. In other words... "my" desired intent here would be to prevent two duplicate/nested folder names from being created.

My reasoning:

I do normally prefer to extract archives using 'copy extract=sub'... So if the archive file name is "my\_archive.7z" and the only thing in the root of the archive is a folder ALSO called "my\_archive"... then it makes sense to me NOT to create an ~additional parent folder with the same name as that which is already inside the archive ( "my\_archive").

The other way around... if Opus were to ALWAYS suppress creating a new base folder to extract to ANYTIME an archive contained only a single folder in the root of the archive - regardless of the name of that folder, then particularly inside a large folder list I might lose track of what was extracted. If I was expecting a folder called "my\_archive" but I end up with a folder called "zz\_archive", then that would NOT be desirable or useful to me because it's not what I expected.

Maybe this could best be implemented as an additional/modified option(s) to the extract argument... copy extract=subnodupebasefolder... blah blah blah, or perhaps two options to accommodate both needs.

---

<div class="post-metadata">

**Author:** ![MissEmerelle](https://resource.dopus.com/user_avatar/resource.dopus.com/missemerelle/32/26227_2.png) [@MissEmerelle](https://resource.dopus.com/u/MissEmerelle)\
**Post date:** [June 15, 2012, 4:05pm UTC](https://resource.dopus.com/t/extract-to-folder/13348/8 "2012-06-15T16:05:42Z")

</div>

Steje, I think that was basically meant. At least it is what I had in mind - any other version of this option would make little to no sense.

---

<div class="post-metadata">

**Author:** ![Xyzzy](https://resource.dopus.com/user_avatar/resource.dopus.com/xyzzy/32/26197_2.png) [@Xyzzy](https://resource.dopus.com/u/Xyzzy)\
**Post date:** [June 15, 2012, 8:55pm UTC](https://resource.dopus.com/t/extract-to-folder/13348/9 "2012-06-15T20:55:51Z")

</div>

I, for one, do not care. The folder inside zip can have any name.

---

<div class="post-metadata">

**Author:** ![MissEmerelle](https://resource.dopus.com/user_avatar/resource.dopus.com/missemerelle/32/26227_2.png) [@MissEmerelle](https://resource.dopus.com/u/MissEmerelle)\
**Post date:** [June 16, 2012, 12:07pm UTC](https://resource.dopus.com/t/extract-to-folder/13348/10 "2012-06-16T12:07:09Z")

</div>

Hm, okay, I guess I got a bit confused about what I was trying to do.  
Just to put it in words so my own request gets a little clearer. Any other/ opposing request might as well be very justified, but my concern is, as soon as there is only one folder inside, extract w/o creating folder. Reason is that normally I work have files that do relate to the filename, so file name of zip and containing folders are quite similar anyway. And my main concern usually has to be path length.  
But as soon as they implement it, I think an option as to how tight to the filename that foldername should be, could be an option.

We'll have to wait and see what they come up with 🙂

---

<div class="post-metadata">

**Author:** ![dhomas](https://resource.dopus.com/letter_avatar_proxy/v4/letter/d/7ba0ec/32.png) [@dhomas](https://resource.dopus.com/u/dhomas)\
**Post date:** [October 8, 2024, 1:09am UTC](https://resource.dopus.com/t/extract-to-folder/13348/11 "2024-10-08T01:09:07Z")

</div>

Was this ever implemented?

---

<div class="post-metadata">

**Author:** ![lxp](https://resource.dopus.com/user_avatar/resource.dopus.com/lxp/32/33734_2.png) [@lxp](https://resource.dopus.com/u/lxp)\
**Post date:** [October 8, 2024, 8:14am UTC](https://resource.dopus.com/t/extract-to-folder/13348/12 "2024-10-08T08:14:15Z")

</div>

The _do-not-create-a-single-folder_ option is available [here](https://resource.dopus.com/t/extract-archives-with-condition/36313/2) and - much expanded - [here](https://resource.dopus.com/t/smart-archive-extraction-enhanced/40637).

I don't think the _do-not-create-a-single-folder-unless-it-differs-from-the-archivename_ option has ever been created.

---

<div class="post-metadata">

**Author:** ![dhomas](https://resource.dopus.com/letter_avatar_proxy/v4/letter/d/7ba0ec/32.png) [@dhomas](https://resource.dopus.com/u/dhomas)\
**Post date:** [October 12, 2024, 6:31pm UTC](https://resource.dopus.com/t/extract-to-folder/13348/13 "2024-10-12T18:31:57Z")

</div>

Yeah definitey a dopus command option would be a lot easier than ~550 lines of code.
