Skip to main content
Engineering LibreTexts

8.3: The File List Browser

  • Page ID
    39614
    \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \) \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)\(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\) \(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\)\(\newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    The file list browser is in fact a general-purpose tool for browsing the file system (as well as FTP servers) from Pharo. You can open it from the World > Tools... > File Browser menu. What you see of course depends on the contents of your local file system, but a typical view is shown in Figure \(\PageIndex{1}\).

    A file list browser.
    Figure \(\PageIndex{1}\): A file list browser.

    When you first open a file list browser it will be focused on the current directory, that is, the one from which you started Pharo. The title bar shows the directory name. The larger pane on the left-hand side can be used to navigate the file system in the conventional way. When a directory is selected, the files that it contains (but not the directories) are displayed on the right. This list of files can be filtered by entering a Unix-style pattern in the small box at the top-left of the window. Initially, this pattern is *, which matches all file names, but you can type a different string there and accept it, changing the pattern. (Note that a * is implicitly prepended and appended to the pattern that you type.) The sort order of the files can be changed using the name, date and size buttons. The rest of the buttons depend on the name of the file selected in the browser. In Figure \(\PageIndex{1}\), the file name has the suffix .st, so the browser assumes that it is pharo code, and provides the possible actions as buttons.

    Because the choice of buttons to display depends on the file’s name, and not on its contents, sometimes the button that you want won’t be on the screen.

    However, the full set of options is always available from the right-click more... menu, so you can easily work around this problem.

    The code button is perhaps the most useful for working with change sets; it opens a browser on the contents of the change set file or even an MC package; an example is shown in Figure \(\PageIndex{2}\). The file contents browser is similar to the browser except that the code is not loaded in memory.

    A File Contents Browser.
    Figure \(\PageIndex{2}\): A File Contents Browser opened on a package.

    This page titled 8.3: The File List Browser is shared under a CC BY-SA 3.0 license and was authored, remixed, and/or curated by via source content that was edited to the style and standards of the LibreTexts platform; a detailed edit history is available upon request.