# from 5.9.0 to 5.12.0, behavior of open directory has changed?

**URL:** https://discourse.paraview.org/t/from-5-9-0-to-5-12-0-behavior-of-open-directory-has-changed/13763
**Category:** ParaView Support
**Created:** [January 22, 2024, 2:13am UTC](https://discourse.paraview.org/t/from-5-9-0-to-5-12-0-behavior-of-open-directory-has-changed/13763 "2024-01-22T02:13:58Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![mahb](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/m/c89c15/32.png) [@mahb](https://discourse.paraview.org/u/mahb)
#### Post date: [January 22, 2024, 2:13am UTC](https://discourse.paraview.org/t/from-5-9-0-to-5-12-0-behavior-of-open-directory-has-changed/13763/1 "2024-01-22T02:13:58Z")

</div>

when I use 5.9.0 and click file -\>open, when I choose a file In the dialogue , the ‘OK’ button is actived to click; when I choose a directory In the diaglogue ,the ‘Ok’ buttuon is also activated. After I click ‘Ok’, the ‘open data with …’ dialogue will list all the directory reader filters.  
Now when I use 5.12.0, when I choose a directory In the diaglogue ,the ‘Ok’ buttuon can not be activated. It is not convenient and is there any way to be back to 5.9.0 behavior.

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [January 22, 2024, 8:36am UTC](https://discourse.paraview.org/t/from-5-9-0-to-5-12-0-behavior-of-open-directory-has-changed/13763/2 "2024-01-22T08:36:56Z")

</div>

I confirm that behavior was broken between 5.10 and 5.11.

@cory.quammen Is this an actual issue or is it voluntary ?

---

<div class="post-metadata">

### Author: ![wascott](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/w/8e8cbc/32.png) [@wascott](https://discourse.paraview.org/u/wascott)
#### Post date: [January 22, 2024, 5:17pm UTC](https://discourse.paraview.org/t/from-5-9-0-to-5-12-0-behavior-of-open-directory-has-changed/13763/3 "2024-01-22T17:17:22Z")

</div>

@utkarsh.ayachit @cory.quammen I believe this is by design. The issue we have is that some datasets are groups of files, others are folders. Navigate was chosen as the button that says “go into this folder”, OK says “Open this file or folder as a dataset”.

---

<div class="post-metadata">

### Author: ![Kenneth\_Moreland](https://discourse.paraview.org/user_avatar/discourse.paraview.org/kenneth_moreland/32/15033_2.png) [@Kenneth\_Moreland](https://discourse.paraview.org/u/Kenneth_Moreland)
#### Post date: [January 22, 2024, 5:44pm UTC](https://discourse.paraview.org/t/from-5-9-0-to-5-12-0-behavior-of-open-directory-has-changed/13763/4 "2024-01-22T17:44:32Z")

</div>

I think the problem is that the `OK` button is greyed out, so you cannot “Open this file or folder as a dataset”.

I remember having discussions about these features. As I recall, I thought the point was to navigate by default but allow you to open instead. The open feature seems to have gotten disabled.

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [January 23, 2024, 8:23am UTC](https://discourse.paraview.org/t/from-5-9-0-to-5-12-0-behavior-of-open-directory-has-changed/13763/5 "2024-01-23T08:23:24Z")

</div>

I agree with @Kenneth_Moreland here. @mahb you may want to open an issue [https://gitlab.kitware.com/paraview/paraview/-/issues](https://gitlab.kitware.com/paraview/paraview/-/issues)

---

<div class="post-metadata">

### Author: ![wascott](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/w/8e8cbc/32.png) [@wascott](https://discourse.paraview.org/u/wascott)
#### Post date: [January 23, 2024, 7:10pm UTC](https://discourse.paraview.org/t/from-5-9-0-to-5-12-0-behavior-of-open-directory-has-changed/13763/6 "2024-01-23T19:10:44Z")

</div>

Could anyone post an example dataset that shows this issue? If so, either write up the bug or if desired I can do it. Let me know where it is, I will add the Sandia tag to it.

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [January 24, 2024, 8:37am UTC](https://discourse.paraview.org/t/from-5-9-0-to-5-12-0-behavior-of-open-directory-has-changed/13763/7 "2024-01-24T08:37:22Z")

</div>

So I looked into it more deeply, and I actually think it is not a bug.

There is currently N “directory” reader in ParaView:

ADIOS2CoreImageReader  
ADIOS2VTXReader  
FidesFileReader  
AMReXGridReader  
AMReXParticlesReader

However, all of these reader not only specify that they support reading directory, but directory with a _specific naming scheme_

Lets look at an example, ADIOS2VTXReader.

In the XML we can find:

```auto
      <Hints>
        <ReaderFactory extensions="bp"
                       file_description="VTX reader: ADIOS2 BP3 File" />
        <ReaderFactory extensions="bp bp4"
                       is_directory="1"
                       file_description="VTX reader: ADIOS2 BP4 Directory" />
      </Hints>

```

Which means the ParaView will allow you to open directory with this reader **if and only if** they are named `something.bp` or `something.bp4`

You can try for yourself, by creating an empty directory named `test.bp4`, ParaView will ungray the Ok button and you will be able to try opening it.

So my guess is that this feature has been augmented to allow not only named directory but directory with a specific name.

But wait, there is more! You can actually override that feature but selection “All files” instead of “Supported files” in the dialog.

**Looping back to @mahb issue, please share the name of the folder you are trying to open and the expected reader you expect ParaView to find. You should be able to work around this feature by selecting “All files”.**

Notes: Please don’t git blame, cause I may be the one implementing this two years ago 🙂

---

<div class="post-metadata">

### Author: ![mahb](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/m/c89c15/32.png) [@mahb](https://discourse.paraview.org/u/mahb)
#### Post date: [January 25, 2024, 3:08am UTC](https://discourse.paraview.org/t/from-5-9-0-to-5-12-0-behavior-of-open-directory-has-changed/13763/8 "2024-01-25T03:08:34Z")

</div>

Thanks a lot. I also find the work around way to open directory. but I will change the directory name or select ‘all files’. Compared with 5.9.0, It is not convient and the old users is hard to adjust.

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [January 25, 2024, 8:40am UTC](https://discourse.paraview.org/t/from-5-9-0-to-5-12-0-behavior-of-open-directory-has-changed/13763/9 "2024-01-25T08:40:49Z")

</div>

> [@mahb](#):
>
> I also find the work around way to open directory. but I will change the directory name or select ‘all files’.

What name does your original directory have and which reader are you trying to use ?

---

<div class="post-metadata">

### Author: ![mahb](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/m/c89c15/32.png) [@mahb](https://discourse.paraview.org/u/mahb)
#### Post date: [January 25, 2024, 9:44am UTC](https://discourse.paraview.org/t/from-5-9-0-to-5-12-0-behavior-of-open-directory-has-changed/13763/10 "2024-01-25T09:44:53Z")

</div>

the reader is new that I customize many years ago.

```
  <Hints>
    <ReaderFactory filename_patterns="*.br" file_description="File Format" is_directory="1" />
 </Hints>

```

Before we upgrade to 5.12.0, when we choose directory ‘dshang.br’, the OK button is ungray. and when we choose ‘dshang’,the OK button is also ungray.

---

<div class="post-metadata">

### Author: ![cory.quammen](https://discourse.paraview.org/user_avatar/discourse.paraview.org/cory.quammen/32/11193_2.png) [@cory.quammen](https://discourse.paraview.org/u/cory.quammen)
#### Post date: [January 25, 2024, 11:34am UTC](https://discourse.paraview.org/t/from-5-9-0-to-5-12-0-behavior-of-open-directory-has-changed/13763/11 "2024-01-25T11:34:34Z")

</div>

> [@mahb](#):
>
> Compared with 5.9.0, It is not convient and the old users is hard to adjust.

This is a tough one. On one hand, enabling the OK button only when a directory follows a naming convention is consistent with the behavior of listing only single files in the file dialog that match a pattern supported by a reader. On the other hand, I can see the annoyance with having to select the All files as a “workaround” to open a directory that doesn’t follow a naming convention. However, that is consistent with having to use the same “workaround” to open a single file that doesn’t follow a known naming convention.

If we enable the OK button for _any_ directory, then there is risk of of user accidentally opening a random directory and being confused about what just happened.

With that, I think the current behavior is overall more desirable than the previous behavior. If different naming conventions for datasets with a directory-based “file” arise within user communities, we can add patterns to support those conventions.

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [January 25, 2024, 11:52am UTC](https://discourse.paraview.org/t/from-5-9-0-to-5-12-0-behavior-of-open-directory-has-changed/13763/12 "2024-01-25T11:52:59Z")

</div>

> [@mahb](#):
>
> we upgrade to 5.12.0, when we choose directory ‘dshang.br’, the OK button is ungray. and when we choose ‘dshang’,the OK button is also ungray.

You just need to update your filename patterns to cover all usecases. Use “\*” if needed.
