<!-- **********************************************************************
  copyright            : (C) 2000-2019
                         Rafi Yanai, Shie Erlich, Frank Schoolmeesters
                         & the Krusader Krew
  e-mail               : krusader-devel@googlegroups.com
  web site             : https://krusader.org
  description          : a Krusader Documentation File

***************************************************************************
* Permission is granted to copy, distribute and/or modify this            *
* document under the terms of the GNU Free Documentation License,         *
* Version 1.1 or any later version published by the Free Software         *
* Foundation; with no Invariant Sections, no Front-Cover Texts and        *
* no Back-Cover Texts.  A copy of the license is available on the         *
* GNU site https://www.gnu.org/licenses/fdl.html or by writing to:        *
* Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,    *
* MA 02111-1307, USA.                                                     *
*********************************************************************** -->
<sect1 id="calculate">
  <title>Calculate Occupied Space</title>
  <indexterm>
    <primary>Occupied Space</primary>
  </indexterm>
  <!-- Thanks to Heiner Eichmann -->
  <para>There are two ways to calculate the occupied space of
  files/directories.</para>
  <itemizedlist>
    <listitem>
      <para>Pressing the 
      configurable shortcut for the <guilabel>Calculate occupied space</guilabel> on a directory under the cursor
      instantly calculates the occupied size.</para>
    </listitem>
    <listitem>
      <para>To calculate how much disk space is occupied by the
      selected files and directories in the active panel select 
        <menuchoice>
          <guimenu>Edit</guimenu>
          <guimenuitem>Calculate Occupied Space</guimenuitem>
        </menuchoice>.
      After a small delay, a dialog box will be
      displayed with total occupied space and the number of files
      and directories you selected. The space occupied by every
      selected directory will be shown as if the user just pressed 
      configurable shortcut on those directories. If the active
      panel is browsing an archive, the numbers will apply to the
      unpacked size of the selected files and directories, not
      their compressed size. After the calculation the selection
      state will be toggled and the cursor will move one step
      downwards.</para>
    </listitem>
  </itemizedlist>
  <para>Calculating the occupied space on remote
  file systems is supported.
  <note>
    <para>Performing this operation on a very large file system
    (thousands of files) may be time-consuming. You can cancel the
    calculation process at any time by clicking the 
    <guibutton>Cancel</guibutton> button.</para>
  </note></para>
</sect1>
