<!DOCTYPE html>
<html>
    <meta charset="utf-8">
    <head>
        <style>
            #header
            {
                background: #d86323;
                padding: 0.7em;
                text-align: left;
            }
            #header a
            {
                color: white;
                text-decoration: none;
                padding: 0.5em 1em 0.5em 1em;
            }
            #title
            {
                color: #6d2113;
            }
            img
            {
                width: 100%;
            }
            video
            {
                width: 100%;
            }
            html
            {
                font-family: sans-serif;
            }
            body
            {
                line-height: 1.5em;
            }
            body
            {
                background: #FAFAFA;
            }
            table
            {
                border-collapse: collapse;
                width: 100%;
            }
            
            table, th, td
            {
                border: 1px solid #aaa;
                padding: 0.5em;
                margin-top: 0.5em;
                margin-bottom: 0.5em;
            }
            code, pre
            {
                font-family: monospace, serif;
                font-size: 1em;
                color: #7f0a0c;
                background: #f5f5f5;
                white-space: pre-wrap;
            }
            .contents
            {
                background: #FFFFFF;
                width: 720px;
                padding: 1em;
                margin-top: 2em;
                margin-bottom: 2em;
                border: 1px solid #E0E0E0;
                text-align: left;
                color: #444;
            }
            #footer
            {
                text-align: center;
            }
            #lang
            {
                float: right;
            }
        </style>
        <title>
            Local File System Access (LFSA) for Client Side Web Apps (CSWA)
        </title>
    </head>
    <body>
        <div id="header">
            <strong id="title">LFSA</strong>
            <div id="lang">
                <a href="../en/index.html">EN</a>
                <a href="../ru/index.html">RU</a>
            </div>
        </div>
        <center><h1>
        </h1></center>
        <center><div class="contents">
<h2 id="overview">Overview</h2>
<p><strong>L</strong>ocal <strong>F</strong>ile <strong>S</strong>ystem <strong>A</strong>ccess (<strong>LFSA</strong>) is:</p>
<ul>
<li>a tiny web server to allow client side JS access to local file system</li>
<li>a buildling block for <strong>C</strong>lient <strong>S</strong>ide <strong>W</strong>eb <strong>A</strong>pps (<strong>CSWA</strong>)</li>
<li>a single Python file</li>
<li>released under <a href="https://creativecommons.org/share-your-work/public-domain/cc0/">CC0</a> license (public domain)</li>
</ul>
<p>Client Side Web Apps run solely on your device, they are not related to cloud solutions in any way: nobody can pull the plug on you.
CSWAs may use LFSA to keep data locally so that you could have complete control of your data.</p>
<p><a href="http://opengamestudio.org/pskov">PSKOV</a> static site generator is the first CSWA to use LFSA.</p>
<h2 id="downloadlfsa">Download LFSA</h2>
<p>Download <a href="../lfsa_1.0.0.py">lfsa_1.0.0.py</a>.</p>
<p>If you use Linux or macOS, you're all set.</p>
<h2 id="installpythonwindowsonly">Install Python (Windows only)</h2>
<video controls poster="../vid/download-install-python.poster.png">
    <source src="../vid/download-install-python.mp4" type ="video/mp4">
    <source src="../vid/download-install-python.webm" type ="video/webm">
    ERROR Your browser does not support HTML5 video
</video>
<p>Windows doesn't have Python installed by default, you have to <a href="https://www.python.org/downloads/windows/">install Python yourself</a> to be able to run LFSA.</p>
<p><strong>Note</strong>: the video depicts Python 2.3.4 installation under Windows 2000, use the latest Python available for your version of Windows.</p>
<h2 id="runlfsa">Run LFSA</h2>
<h3 id="linuxandmacos">Linux and macOS</h3>
<video controls poster="../vid/run-lfsa.macos.poster.png">
    <source src="../vid/run-lfsa.macos.mp4" type ="video/mp4">
    <source src="../vid/run-lfsa.macos.webm" type ="video/webm">
    ERROR Your browser does not support HTML5 video
</video>
<p>If you use Linux or macOS, run LFSA in terminal:</p>
<pre><code>/path/to/lfsa_1.0.0.py /path/to/dir
</code></pre>
<h3 id="windows">Windows</h3>
<video controls poster="../vid/run-lfsa.w2k.poster.png">
    <source src="../vid/run-lfsa.w2k.mp4" type ="video/mp4">
    <source src="../vid/run-lfsa.w2k.webm" type ="video/webm">
    ERROR Your browser does not support HTML5 video
</video>
<p>If you use Windows, run LFSA in <a href="https://en.wikipedia.org/wiki/Cmd.exe">CMD</a>:</p>
<pre><code>C:/path/to/Python/installation/python.exe C:/path/to/lfsa_1.0.0.py C:/path/to/dir
</code></pre>
<h2 id="durability">Durability</h2>
<p>As you noticed, LFSA can run on really old operating systems dating back to 2000. That's intentional: we care about users, so we want to cover as many users as possible.</p>
        </div></center>
        <div id="footer">
            The site has been generated by <a href="http://opengamestudio.org/pskov">PSKOV</a>
            from <a href="http://github.com/ogstudio/site-lfsa">this source code</a>.
            The site is hosted by <a href="https://pages.github.com">GitHub Pages</a>.
        </div>
        <script type="text/javascript">
        </script>
    </body>
</html>