mollusk 0e4acfb8f2 fix incorrect folder name for julia-0.6.x
Former-commit-id: ef2c7401e0876f22d2f7762d182cfbcd5a7d9c70
2018-06-11 03:28:36 -07:00

36 lines
52 KiB
HTML

<!DOCTYPE html>
<html lang="en"><head><meta charset="UTF-8"/><meta name="viewport" content="width=device-width, initial-scale=1.0"/><title>Filesystem · The Julia Language</title><script>(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-28835595-6', 'auto');
ga('send', 'pageview');
</script><link href="https://cdnjs.cloudflare.com/ajax/libs/normalize/4.2.0/normalize.min.css" rel="stylesheet" type="text/css"/><link href="https://fonts.googleapis.com/css?family=Lato|Roboto+Mono" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/default.min.css" rel="stylesheet" type="text/css"/><script>documenterBaseURL=".."</script><script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.2.0/require.min.js" data-main="../assets/documenter.js"></script><script src="../siteinfo.js"></script><script src="../../versions.js"></script><link href="../assets/documenter.css" rel="stylesheet" type="text/css"/><link href="../assets/julia-manual.css" rel="stylesheet" type="text/css"/></head><body><nav class="toc"><a href="../index.html"><img class="logo" src="../assets/logo.png" alt="The Julia Language logo"/></a><h1>The Julia Language</h1><select id="version-selector" onChange="window.location.href=this.value" style="visibility: hidden"></select><form class="search" id="search-form" action="../search.html"><input id="search-query" name="q" type="text" placeholder="Search docs"/></form><ul><li><a class="toctext" href="../index.html">Home</a></li><li><span class="toctext">Manual</span><ul><li><a class="toctext" href="../manual/introduction.html">Introduction</a></li><li><a class="toctext" href="../manual/getting-started.html">Getting Started</a></li><li><a class="toctext" href="../manual/variables.html">Variables</a></li><li><a class="toctext" href="../manual/integers-and-floating-point-numbers.html">Integers and Floating-Point Numbers</a></li><li><a class="toctext" href="../manual/mathematical-operations.html">Mathematical Operations and Elementary Functions</a></li><li><a class="toctext" href="../manual/complex-and-rational-numbers.html">Complex and Rational Numbers</a></li><li><a class="toctext" href="../manual/strings.html">Strings</a></li><li><a class="toctext" href="../manual/functions.html">Functions</a></li><li><a class="toctext" href="../manual/control-flow.html">Control Flow</a></li><li><a class="toctext" href="../manual/variables-and-scoping.html">Scope of Variables</a></li><li><a class="toctext" href="../manual/types.html">Types</a></li><li><a class="toctext" href="../manual/methods.html">Methods</a></li><li><a class="toctext" href="../manual/constructors.html">Constructors</a></li><li><a class="toctext" href="../manual/conversion-and-promotion.html">Conversion and Promotion</a></li><li><a class="toctext" href="../manual/interfaces.html">Interfaces</a></li><li><a class="toctext" href="../manual/modules.html">Modules</a></li><li><a class="toctext" href="../manual/documentation.html">Documentation</a></li><li><a class="toctext" href="../manual/metaprogramming.html">Metaprogramming</a></li><li><a class="toctext" href="../manual/arrays.html">Multi-dimensional Arrays</a></li><li><a class="toctext" href="../manual/linear-algebra.html">Linear algebra</a></li><li><a class="toctext" href="../manual/networking-and-streams.html">Networking and Streams</a></li><li><a class="toctext" href="../manual/parallel-computing.html">Parallel Computing</a></li><li><a class="toctext" href="../manual/dates.html">Date and DateTime</a></li><li><a class="toctext" href="../manual/interacting-with-julia.html">Interacting With Julia</a></li><li><a class="toctext" href="../manual/running-external-programs.html">Running External Programs</a></li><li><a class="toctext" href="../manual/calling-c-and-fortran-code.html">Calling C and Fortran Code</a></li><li><a class="toctext" href="../manual/handling-operating-system-variation.html">Handling Operating System Variation</a></li><li><a class="toctext" href="../manual/environment-variables.html">Environment Variables</a></li><li><a class="toctext" href="../manual/embedding.html">Embedding Julia</a></li><li><a class="toctext" href="../manual/packages.html">Packages</a></li><li><a class="toctext" href="../manual/profile.html">Profiling</a></li><li><a class="toctext" href="../manual/stacktraces.html">Stack Traces</a></li><li><a class="toctext" href="../manual/performance-tips.html">Performance Tips</a></li><li><a class="toctext" href="../manual/workflow-tips.html">Workflow Tips</a></li><li><a class="toctext" href="../manual/style-guide.html">Style Guide</a></li><li><a class="toctext" href="../manual/faq.html">Frequently Asked Questions</a></li><li><a class="toctext" href="../manual/noteworthy-differences.html">Noteworthy Differences from other Languages</a></li><li><a class="toctext" href="../manual/unicode-input.html">Unicode Input</a></li></ul></li><li><span class="toctext">Standard Library</span><ul><li><a class="toctext" href="base.html">Essentials</a></li><li><a class="toctext" href="collections.html">Collections and Data Structures</a></li><li><a class="toctext" href="math.html">Mathematics</a></li><li><a class="toctext" href="numbers.html">Numbers</a></li><li><a class="toctext" href="strings.html">Strings</a></li><li><a class="toctext" href="arrays.html">Arrays</a></li><li><a class="toctext" href="parallel.html">Tasks and Parallel Computing</a></li><li><a class="toctext" href="linalg.html">Linear Algebra</a></li><li><a class="toctext" href="constants.html">Constants</a></li><li class="current"><a class="toctext" href="file.html">Filesystem</a><ul class="internal"></ul></li><li><a class="toctext" href="io-network.html">I/O and Network</a></li><li><a class="toctext" href="punctuation.html">Punctuation</a></li><li><a class="toctext" href="sort.html">Sorting and Related Functions</a></li><li><a class="toctext" href="pkg.html">Package Manager Functions</a></li><li><a class="toctext" href="dates.html">Dates and Time</a></li><li><a class="toctext" href="iterators.html">Iteration utilities</a></li><li><a class="toctext" href="test.html">Unit Testing</a></li><li><a class="toctext" href="c.html">C Interface</a></li><li><a class="toctext" href="libc.html">C Standard Library</a></li><li><a class="toctext" href="libdl.html">Dynamic Linker</a></li><li><a class="toctext" href="profile.html">Profiling</a></li><li><a class="toctext" href="stacktraces.html">StackTraces</a></li><li><a class="toctext" href="simd-types.html">SIMD Support</a></li></ul></li><li><span class="toctext">Developer Documentation</span><ul><li><a class="toctext" href="../devdocs/reflection.html">Reflection and introspection</a></li><li><span class="toctext">Documentation of Julia&#39;s Internals</span><ul><li><a class="toctext" href="../devdocs/init.html">Initialization of the Julia runtime</a></li><li><a class="toctext" href="../devdocs/ast.html">Julia ASTs</a></li><li><a class="toctext" href="../devdocs/types.html">More about types</a></li><li><a class="toctext" href="../devdocs/object.html">Memory layout of Julia Objects</a></li><li><a class="toctext" href="../devdocs/eval.html">Eval of Julia code</a></li><li><a class="toctext" href="../devdocs/callconv.html">Calling Conventions</a></li><li><a class="toctext" href="../devdocs/compiler.html">High-level Overview of the Native-Code Generation Process</a></li><li><a class="toctext" href="../devdocs/functions.html">Julia Functions</a></li><li><a class="toctext" href="../devdocs/cartesian.html">Base.Cartesian</a></li><li><a class="toctext" href="../devdocs/meta.html">Talking to the compiler (the <code>:meta</code> mechanism)</a></li><li><a class="toctext" href="../devdocs/subarrays.html">SubArrays</a></li><li><a class="toctext" href="../devdocs/sysimg.html">System Image Building</a></li><li><a class="toctext" href="../devdocs/llvm.html">Working with LLVM</a></li><li><a class="toctext" href="../devdocs/stdio.html">printf() and stdio in the Julia runtime</a></li><li><a class="toctext" href="../devdocs/boundscheck.html">Bounds checking</a></li><li><a class="toctext" href="../devdocs/locks.html">Proper maintenance and care of multi-threading locks</a></li><li><a class="toctext" href="../devdocs/offset-arrays.html">Arrays with custom indices</a></li><li><a class="toctext" href="../devdocs/libgit2.html">Base.LibGit2</a></li><li><a class="toctext" href="../devdocs/require.html">Module loading</a></li></ul></li><li><span class="toctext">Developing/debugging Julia&#39;s C code</span><ul><li><a class="toctext" href="../devdocs/backtraces.html">Reporting and analyzing crashes (segfaults)</a></li><li><a class="toctext" href="../devdocs/debuggingtips.html">gdb debugging tips</a></li><li><a class="toctext" href="../devdocs/valgrind.html">Using Valgrind with Julia</a></li><li><a class="toctext" href="../devdocs/sanitizers.html">Sanitizer support</a></li></ul></li></ul></li></ul></nav><article id="docs"><header><nav><ul><li>Standard Library</li><li><a href="file.html">Filesystem</a></li></ul><a class="edit-page" href="https://github.com/JuliaLang/julia/blob/master/doc/src/stdlib/file.md"><span class="fa"></span> Edit on GitHub</a></nav><hr/><div id="topbar"><span>Filesystem</span><a class="fa fa-bars" href="#"></a></div></header><h1><a class="nav-anchor" id="Filesystem-1" href="#Filesystem-1">Filesystem</a></h1><section class="docstring"><div class="docstring-header"><a class="docstring-binding" id="Base.Filesystem.pwd" href="#Base.Filesystem.pwd"><code>Base.Filesystem.pwd</code></a><span class="docstring-category">Function</span>.</div><div><pre><code class="language-none">pwd() -&gt; AbstractString</code></pre><p>Get the current working directory.</p></div><a class="source-link" target="_blank" href="https://github.com/JuliaLang/julia/blob/d55cadc350d426a95fd967121ba77494d08364c8/base/file.jl#L32-L36">source</a></section><section class="docstring"><div class="docstring-header"><a class="docstring-binding" id="Base.Filesystem.cd-Tuple{AbstractString}" href="#Base.Filesystem.cd-Tuple{AbstractString}"><code>Base.Filesystem.cd</code></a><span class="docstring-category">Method</span>.</div><div><pre><code class="language-none">cd(dir::AbstractString=homedir())</code></pre><p>Set the current working directory.</p></div><a class="source-link" target="_blank" href="https://github.com/JuliaLang/julia/blob/d55cadc350d426a95fd967121ba77494d08364c8/base/file.jl#L44-L48">source</a></section><section class="docstring"><div class="docstring-header"><a class="docstring-binding" id="Base.Filesystem.cd-Tuple{Function}" href="#Base.Filesystem.cd-Tuple{Function}"><code>Base.Filesystem.cd</code></a><span class="docstring-category">Method</span>.</div><div><pre><code class="language-none">cd(f::Function, dir::AbstractString=homedir())</code></pre><p>Temporarily changes the current working directory and applies function <code>f</code> before returning.</p></div><a class="source-link" target="_blank" href="https://github.com/JuliaLang/julia/blob/d55cadc350d426a95fd967121ba77494d08364c8/base/file.jl#L77-L81">source</a></section><section class="docstring"><div class="docstring-header"><a class="docstring-binding" id="Base.Filesystem.readdir" href="#Base.Filesystem.readdir"><code>Base.Filesystem.readdir</code></a><span class="docstring-category">Function</span>.</div><div><pre><code class="language-none">readdir(dir::AbstractString=&quot;.&quot;) -&gt; Vector{String}</code></pre><p>Returns the files and directories in the directory <code>dir</code> (or the current working directory if not given).</p></div><a class="source-link" target="_blank" href="https://github.com/JuliaLang/julia/blob/d55cadc350d426a95fd967121ba77494d08364c8/base/file.jl#L403-L407">source</a></section><section class="docstring"><div class="docstring-header"><a class="docstring-binding" id="Base.Filesystem.walkdir" href="#Base.Filesystem.walkdir"><code>Base.Filesystem.walkdir</code></a><span class="docstring-category">Function</span>.</div><div><pre><code class="language-none">walkdir(dir; topdown=true, follow_symlinks=false, onerror=throw)</code></pre><p>The <code>walkdir</code> method returns an iterator that walks the directory tree of a directory. The iterator returns a tuple containing <code>(rootpath, dirs, files)</code>. The directory tree can be traversed top-down or bottom-up. If <code>walkdir</code> encounters a <a href="base.html#Base.SystemError"><code>SystemError</code></a> it will rethrow the error by default. A custom error handling function can be provided through <code>onerror</code> keyword argument. <code>onerror</code> is called with a <code>SystemError</code> as argument.</p><pre><code class="language-none">for (root, dirs, files) in walkdir(&quot;.&quot;)
println(&quot;Directories in $root&quot;)
for dir in dirs
println(joinpath(root, dir)) # path to directories
end
println(&quot;Files in $root&quot;)
for file in files
println(joinpath(root, file)) # path to files
end
end</code></pre></div><a class="source-link" target="_blank" href="https://github.com/JuliaLang/julia/blob/d55cadc350d426a95fd967121ba77494d08364c8/base/file.jl#L433-L455">source</a></section><section class="docstring"><div class="docstring-header"><a class="docstring-binding" id="Base.Filesystem.mkdir" href="#Base.Filesystem.mkdir"><code>Base.Filesystem.mkdir</code></a><span class="docstring-category">Function</span>.</div><div><pre><code class="language-none">mkdir(path::AbstractString, mode::Unsigned=0o777)</code></pre><p>Make a new directory with name <code>path</code> and permissions <code>mode</code>. <code>mode</code> defaults to <code>0o777</code>, modified by the current file creation mask. This function never creates more than one directory. If the directory already exists, or some intermediate directories do not exist, this function throws an error. See <a href="file.html#Base.Filesystem.mkpath"><code>mkpath</code></a> for a function which creates all required intermediate directories.</p></div><a class="source-link" target="_blank" href="https://github.com/JuliaLang/julia/blob/d55cadc350d426a95fd967121ba77494d08364c8/base/file.jl#L84-L92">source</a></section><section class="docstring"><div class="docstring-header"><a class="docstring-binding" id="Base.Filesystem.mkpath" href="#Base.Filesystem.mkpath"><code>Base.Filesystem.mkpath</code></a><span class="docstring-category">Function</span>.</div><div><pre><code class="language-none">mkpath(path::AbstractString, mode::Unsigned=0o777)</code></pre><p>Create all directories in the given <code>path</code>, with permissions <code>mode</code>. <code>mode</code> defaults to <code>0o777</code>, modified by the current file creation mask.</p></div><a class="source-link" target="_blank" href="https://github.com/JuliaLang/julia/blob/d55cadc350d426a95fd967121ba77494d08364c8/base/file.jl#L102-L107">source</a></section><section class="docstring"><div class="docstring-header"><a class="docstring-binding" id="Base.Filesystem.symlink" href="#Base.Filesystem.symlink"><code>Base.Filesystem.symlink</code></a><span class="docstring-category">Function</span>.</div><div><pre><code class="language-none">symlink(target::AbstractString, link::AbstractString)</code></pre><p>Creates a symbolic link to <code>target</code> with the name <code>link</code>.</p><div class="admonition note"><div class="admonition-title">Note</div><div class="admonition-text"><p>This function raises an error under operating systems that do not support soft symbolic links, such as Windows XP.</p></div></div></div><a class="source-link" target="_blank" href="https://github.com/JuliaLang/julia/blob/d55cadc350d426a95fd967121ba77494d08364c8/base/file.jl#L543-L551">source</a></section><section class="docstring"><div class="docstring-header"><a class="docstring-binding" id="Base.Filesystem.readlink" href="#Base.Filesystem.readlink"><code>Base.Filesystem.readlink</code></a><span class="docstring-category">Function</span>.</div><div><pre><code class="language-none">readlink(path::AbstractString) -&gt; AbstractString</code></pre><p>Returns the target location a symbolic link <code>path</code> points to.</p></div><a class="source-link" target="_blank" href="https://github.com/JuliaLang/julia/blob/d55cadc350d426a95fd967121ba77494d08364c8/base/file.jl#L574-L578">source</a></section><section class="docstring"><div class="docstring-header"><a class="docstring-binding" id="Base.Filesystem.chmod" href="#Base.Filesystem.chmod"><code>Base.Filesystem.chmod</code></a><span class="docstring-category">Function</span>.</div><div><pre><code class="language-none">chmod(path::AbstractString, mode::Integer; recursive::Bool=false)</code></pre><p>Change the permissions mode of <code>path</code> to <code>mode</code>. Only integer <code>mode</code>s (e.g. <code>0o777</code>) are currently supported. If <code>recursive=true</code> and the path is a directory all permissions in that directory will be recursively changed.</p></div><a class="source-link" target="_blank" href="https://github.com/JuliaLang/julia/blob/d55cadc350d426a95fd967121ba77494d08364c8/base/file.jl#L598-L604">source</a></section><section class="docstring"><div class="docstring-header"><a class="docstring-binding" id="Base.Filesystem.chown" href="#Base.Filesystem.chown"><code>Base.Filesystem.chown</code></a><span class="docstring-category">Function</span>.</div><div><pre><code class="language-none">chown(path::AbstractString, owner::Integer, group::Integer=-1)</code></pre><p>Change the owner and/or group of <code>path</code> to <code>owner</code> and/or <code>group</code>. If the value entered for <code>owner</code> or <code>group</code> is <code>-1</code> the corresponding ID will not change. Only integer <code>owner</code>s and <code>group</code>s are currently supported.</p></div><a class="source-link" target="_blank" href="https://github.com/JuliaLang/julia/blob/d55cadc350d426a95fd967121ba77494d08364c8/base/file.jl#L618-L623">source</a></section><section class="docstring"><div class="docstring-header"><a class="docstring-binding" id="Base.stat" href="#Base.stat"><code>Base.stat</code></a><span class="docstring-category">Function</span>.</div><div><pre><code class="language-none">stat(file)</code></pre><p>Returns a structure whose fields contain information about the file. The fields of the structure are:</p><table><tr><th>Name</th><th>Description</th></tr><tr><td>size</td><td>The size (in bytes) of the file</td></tr><tr><td>device</td><td>ID of the device that contains the file</td></tr><tr><td>inode</td><td>The inode number of the file</td></tr><tr><td>mode</td><td>The protection mode of the file</td></tr><tr><td>nlink</td><td>The number of hard links to the file</td></tr><tr><td>uid</td><td>The user id of the owner of the file</td></tr><tr><td>gid</td><td>The group id of the file owner</td></tr><tr><td>rdev</td><td>If this file refers to a device, the ID of the device it refers to</td></tr><tr><td>blksize</td><td>The file-system preferred block size for the file</td></tr><tr><td>blocks</td><td>The number of such blocks allocated</td></tr><tr><td>mtime</td><td>Unix timestamp of when the file was last modified</td></tr><tr><td>ctime</td><td>Unix timestamp of when the file was created</td></tr></table></div><a class="source-link" target="_blank" href="https://github.com/JuliaLang/julia/blob/d55cadc350d426a95fd967121ba77494d08364c8/base/stat.jl#L83-L104">source</a></section><section class="docstring"><div class="docstring-header"><a class="docstring-binding" id="Base.Filesystem.lstat" href="#Base.Filesystem.lstat"><code>Base.Filesystem.lstat</code></a><span class="docstring-category">Function</span>.</div><div><pre><code class="language-none">lstat(file)</code></pre><p>Like <a href="file.html#Base.stat"><code>stat</code></a>, but for symbolic links gets the info for the link itself rather than the file it refers to. This function must be called on a file path rather than a file object or a file descriptor.</p></div><a class="source-link" target="_blank" href="https://github.com/JuliaLang/julia/blob/d55cadc350d426a95fd967121ba77494d08364c8/base/stat.jl#L107-L114">source</a></section><section class="docstring"><div class="docstring-header"><a class="docstring-binding" id="Base.Filesystem.ctime" href="#Base.Filesystem.ctime"><code>Base.Filesystem.ctime</code></a><span class="docstring-category">Function</span>.</div><div><pre><code class="language-none">ctime(file)</code></pre><p>Equivalent to <code>stat(file).ctime</code></p></div><a class="source-link" target="_blank" href="https://github.com/JuliaLang/julia/blob/d55cadc350d426a95fd967121ba77494d08364c8/base/stat.jl#L140-L144">source</a></section><section class="docstring"><div class="docstring-header"><a class="docstring-binding" id="Base.Filesystem.mtime" href="#Base.Filesystem.mtime"><code>Base.Filesystem.mtime</code></a><span class="docstring-category">Function</span>.</div><div><pre><code class="language-none">mtime(file)</code></pre><p>Equivalent to <code>stat(file).mtime</code>.</p></div><a class="source-link" target="_blank" href="https://github.com/JuliaLang/julia/blob/d55cadc350d426a95fd967121ba77494d08364c8/base/stat.jl#L133-L137">source</a></section><section class="docstring"><div class="docstring-header"><a class="docstring-binding" id="Base.Filesystem.filemode" href="#Base.Filesystem.filemode"><code>Base.Filesystem.filemode</code></a><span class="docstring-category">Function</span>.</div><div><pre><code class="language-none">filemode(file)</code></pre><p>Equivalent to <code>stat(file).mode</code></p></div><a class="source-link" target="_blank" href="https://github.com/JuliaLang/julia/blob/d55cadc350d426a95fd967121ba77494d08364c8/base/stat.jl#L119-L123">source</a></section><section class="docstring"><div class="docstring-header"><a class="docstring-binding" id="Base.Filesystem.filesize" href="#Base.Filesystem.filesize"><code>Base.Filesystem.filesize</code></a><span class="docstring-category">Function</span>.</div><div><pre><code class="language-none">filesize(path...)</code></pre><p>Equivalent to <code>stat(file).size</code>.</p></div><a class="source-link" target="_blank" href="https://github.com/JuliaLang/julia/blob/d55cadc350d426a95fd967121ba77494d08364c8/base/stat.jl#L126-L130">source</a></section><section class="docstring"><div class="docstring-header"><a class="docstring-binding" id="Base.Filesystem.uperm" href="#Base.Filesystem.uperm"><code>Base.Filesystem.uperm</code></a><span class="docstring-category">Function</span>.</div><div><pre><code class="language-none">uperm(file)</code></pre><p>Gets the permissions of the owner of the file as a bitfield of</p><table><tr><th>Value</th><th>Description</th></tr><tr><td>01</td><td>Execute Permission</td></tr><tr><td>02</td><td>Write Permission</td></tr><tr><td>04</td><td>Read Permission</td></tr></table><p>For allowed arguments, see <a href="file.html#Base.stat"><code>stat</code></a>.</p></div><a class="source-link" target="_blank" href="https://github.com/JuliaLang/julia/blob/d55cadc350d426a95fd967121ba77494d08364c8/base/stat.jl#L228-L240">source</a></section><section class="docstring"><div class="docstring-header"><a class="docstring-binding" id="Base.Filesystem.gperm" href="#Base.Filesystem.gperm"><code>Base.Filesystem.gperm</code></a><span class="docstring-category">Function</span>.</div><div><pre><code class="language-none">gperm(file)</code></pre><p>Like <a href="file.html#Base.Filesystem.uperm"><code>uperm</code></a> but gets the permissions of the group owning the file.</p></div><a class="source-link" target="_blank" href="https://github.com/JuliaLang/julia/blob/d55cadc350d426a95fd967121ba77494d08364c8/base/stat.jl#L243-L247">source</a></section><section class="docstring"><div class="docstring-header"><a class="docstring-binding" id="Base.Filesystem.operm" href="#Base.Filesystem.operm"><code>Base.Filesystem.operm</code></a><span class="docstring-category">Function</span>.</div><div><pre><code class="language-none">operm(file)</code></pre><p>Like <a href="file.html#Base.Filesystem.uperm"><code>uperm</code></a> but gets the permissions for people who neither own the file nor are a member of the group owning the file</p></div><a class="source-link" target="_blank" href="https://github.com/JuliaLang/julia/blob/d55cadc350d426a95fd967121ba77494d08364c8/base/stat.jl#L250-L255">source</a></section><section class="docstring"><div class="docstring-header"><a class="docstring-binding" id="Base.Filesystem.cp" href="#Base.Filesystem.cp"><code>Base.Filesystem.cp</code></a><span class="docstring-category">Function</span>.</div><div><pre><code class="language-none">cp(src::AbstractString, dst::AbstractString; remove_destination::Bool=false, follow_symlinks::Bool=false)</code></pre><p>Copy the file, link, or directory from <code>src</code> to <code>dest</code>. <code>remove_destination=true</code> will first remove an existing <code>dst</code>.</p><p>If <code>follow_symlinks=false</code>, and <code>src</code> is a symbolic link, <code>dst</code> will be created as a symbolic link. If <code>follow_symlinks=true</code> and <code>src</code> is a symbolic link, <code>dst</code> will be a copy of the file or directory <code>src</code> refers to.</p></div><a class="source-link" target="_blank" href="https://github.com/JuliaLang/julia/blob/d55cadc350d426a95fd967121ba77494d08364c8/base/file.jl#L209-L218">source</a></section><section class="docstring"><div class="docstring-header"><a class="docstring-binding" id="Base.download" href="#Base.download"><code>Base.download</code></a><span class="docstring-category">Function</span>.</div><div><pre><code class="language-none">download(url::AbstractString, [localfile::AbstractString])</code></pre><p>Download a file from the given url, optionally renaming it to the given local file name. Note that this function relies on the availability of external tools such as <code>curl</code>, <code>wget</code> or <code>fetch</code> to download the file and is provided for convenience. For production use or situations in which more options are needed, please use a package that provides the desired functionality instead.</p></div><a class="source-link" target="_blank" href="https://github.com/JuliaLang/julia/blob/d55cadc350d426a95fd967121ba77494d08364c8/base/interactiveutil.jl#L654-L662">source</a></section><section class="docstring"><div class="docstring-header"><a class="docstring-binding" id="Base.Filesystem.mv" href="#Base.Filesystem.mv"><code>Base.Filesystem.mv</code></a><span class="docstring-category">Function</span>.</div><div><pre><code class="language-none">mv(src::AbstractString, dst::AbstractString; remove_destination::Bool=false)</code></pre><p>Move the file, link, or directory from <code>src</code> to <code>dst</code>. <code>remove_destination=true</code> will first remove an existing <code>dst</code>.</p></div><a class="source-link" target="_blank" href="https://github.com/JuliaLang/julia/blob/d55cadc350d426a95fd967121ba77494d08364c8/base/file.jl#L231-L236">source</a></section><section class="docstring"><div class="docstring-header"><a class="docstring-binding" id="Base.Filesystem.rm" href="#Base.Filesystem.rm"><code>Base.Filesystem.rm</code></a><span class="docstring-category">Function</span>.</div><div><pre><code class="language-none">rm(path::AbstractString; force::Bool=false, recursive::Bool=false)</code></pre><p>Delete the file, link, or empty directory at the given path. If <code>force=true</code> is passed, a non-existing path is not treated as error. If <code>recursive=true</code> is passed and the path is a directory, then all contents are removed recursively.</p></div><a class="source-link" target="_blank" href="https://github.com/JuliaLang/julia/blob/d55cadc350d426a95fd967121ba77494d08364c8/base/file.jl#L129-L135">source</a></section><section class="docstring"><div class="docstring-header"><a class="docstring-binding" id="Base.Filesystem.touch" href="#Base.Filesystem.touch"><code>Base.Filesystem.touch</code></a><span class="docstring-category">Function</span>.</div><div><pre><code class="language-none">touch(path::AbstractString)</code></pre><p>Update the last-modified timestamp on a file to the current time.</p></div><a class="source-link" target="_blank" href="https://github.com/JuliaLang/julia/blob/d55cadc350d426a95fd967121ba77494d08364c8/base/file.jl#L242-L246">source</a></section><section class="docstring"><div class="docstring-header"><a class="docstring-binding" id="Base.Filesystem.tempname" href="#Base.Filesystem.tempname"><code>Base.Filesystem.tempname</code></a><span class="docstring-category">Function</span>.</div><div><pre><code class="language-none">tempname()</code></pre><p>Generate a unique temporary file path.</p></div><a class="source-link" target="_blank" href="https://github.com/JuliaLang/julia/blob/d55cadc350d426a95fd967121ba77494d08364c8/base/file.jl#L343-L347">source</a></section><section class="docstring"><div class="docstring-header"><a class="docstring-binding" id="Base.Filesystem.tempdir" href="#Base.Filesystem.tempdir"><code>Base.Filesystem.tempdir</code></a><span class="docstring-category">Function</span>.</div><div><pre><code class="language-none">tempdir()</code></pre><p>Obtain the path of a temporary directory (possibly shared with other processes).</p></div><a class="source-link" target="_blank" href="https://github.com/JuliaLang/julia/blob/d55cadc350d426a95fd967121ba77494d08364c8/base/file.jl#L336-L340">source</a></section><section class="docstring"><div class="docstring-header"><a class="docstring-binding" id="Base.Filesystem.mktemp-Tuple{Any}" href="#Base.Filesystem.mktemp-Tuple{Any}"><code>Base.Filesystem.mktemp</code></a><span class="docstring-category">Method</span>.</div><div><pre><code class="language-none">mktemp(parent=tempdir())</code></pre><p>Returns <code>(path, io)</code>, where <code>path</code> is the path of a new temporary file in <code>parent</code> and <code>io</code> is an open file object for this path.</p></div><a class="source-link" target="_blank" href="https://github.com/JuliaLang/julia/blob/d55cadc350d426a95fd967121ba77494d08364c8/base/file.jl#L350-L355">source</a></section><section class="docstring"><div class="docstring-header"><a class="docstring-binding" id="Base.Filesystem.mktemp-Tuple{Function,Any}" href="#Base.Filesystem.mktemp-Tuple{Function,Any}"><code>Base.Filesystem.mktemp</code></a><span class="docstring-category">Method</span>.</div><div><pre><code class="language-none">mktemp(f::Function, parent=tempdir())</code></pre><p>Apply the function <code>f</code> to the result of <a href="file.html#Base.Filesystem.mktemp-Tuple{Any}"><code>mktemp(parent)</code></a> and remove the temporary file upon completion.</p></div><a class="source-link" target="_blank" href="https://github.com/JuliaLang/julia/blob/d55cadc350d426a95fd967121ba77494d08364c8/base/file.jl#L367-L372">source</a></section><section class="docstring"><div class="docstring-header"><a class="docstring-binding" id="Base.Filesystem.mktempdir-Tuple{Any}" href="#Base.Filesystem.mktempdir-Tuple{Any}"><code>Base.Filesystem.mktempdir</code></a><span class="docstring-category">Method</span>.</div><div><pre><code class="language-none">mktempdir(parent=tempdir())</code></pre><p>Create a temporary directory in the <code>parent</code> directory and return its path. If <code>parent</code> does not exist, throw an error.</p></div><a class="source-link" target="_blank" href="https://github.com/JuliaLang/julia/blob/d55cadc350d426a95fd967121ba77494d08364c8/base/file.jl#L358-L363">source</a></section><section class="docstring"><div class="docstring-header"><a class="docstring-binding" id="Base.Filesystem.mktempdir-Tuple{Function,Any}" href="#Base.Filesystem.mktempdir-Tuple{Function,Any}"><code>Base.Filesystem.mktempdir</code></a><span class="docstring-category">Method</span>.</div><div><pre><code class="language-none">mktempdir(f::Function, parent=tempdir())</code></pre><p>Apply the function <code>f</code> to the result of <a href="file.html#Base.Filesystem.mktempdir-Tuple{Any}"><code>mktempdir(parent)</code></a> and remove the temporary directory upon completion.</p></div><a class="source-link" target="_blank" href="https://github.com/JuliaLang/julia/blob/d55cadc350d426a95fd967121ba77494d08364c8/base/file.jl#L383-L388">source</a></section><section class="docstring"><div class="docstring-header"><a class="docstring-binding" id="Base.Filesystem.isblockdev" href="#Base.Filesystem.isblockdev"><code>Base.Filesystem.isblockdev</code></a><span class="docstring-category">Function</span>.</div><div><pre><code class="language-none">isblockdev(path) -&gt; Bool</code></pre><p>Returns <code>true</code> if <code>path</code> is a block device, <code>false</code> otherwise.</p></div><a class="source-link" target="_blank" href="https://github.com/JuliaLang/julia/blob/d55cadc350d426a95fd967121ba77494d08364c8/base/stat.jl#L177-L181">source</a></section><section class="docstring"><div class="docstring-header"><a class="docstring-binding" id="Base.Filesystem.ischardev" href="#Base.Filesystem.ischardev"><code>Base.Filesystem.ischardev</code></a><span class="docstring-category">Function</span>.</div><div><pre><code class="language-none">ischardev(path) -&gt; Bool</code></pre><p>Returns <code>true</code> if <code>path</code> is a character device, <code>false</code> otherwise.</p></div><a class="source-link" target="_blank" href="https://github.com/JuliaLang/julia/blob/d55cadc350d426a95fd967121ba77494d08364c8/base/stat.jl#L163-L167">source</a></section><section class="docstring"><div class="docstring-header"><a class="docstring-binding" id="Base.Filesystem.isdir" href="#Base.Filesystem.isdir"><code>Base.Filesystem.isdir</code></a><span class="docstring-category">Function</span>.</div><div><pre><code class="language-none">isdir(path) -&gt; Bool</code></pre><p>Returns <code>true</code> if <code>path</code> is a directory, <code>false</code> otherwise.</p></div><a class="source-link" target="_blank" href="https://github.com/JuliaLang/julia/blob/d55cadc350d426a95fd967121ba77494d08364c8/base/stat.jl#L170-L174">source</a></section><section class="docstring"><div class="docstring-header"><a class="docstring-binding" id="Base.Filesystem.isfifo" href="#Base.Filesystem.isfifo"><code>Base.Filesystem.isfifo</code></a><span class="docstring-category">Function</span>.</div><div><pre><code class="language-none">isfifo(path) -&gt; Bool</code></pre><p>Returns <code>true</code> if <code>path</code> is a FIFO, <code>false</code> otherwise.</p></div><a class="source-link" target="_blank" href="https://github.com/JuliaLang/julia/blob/d55cadc350d426a95fd967121ba77494d08364c8/base/stat.jl#L156-L160">source</a></section><section class="docstring"><div class="docstring-header"><a class="docstring-binding" id="Base.Filesystem.isfile" href="#Base.Filesystem.isfile"><code>Base.Filesystem.isfile</code></a><span class="docstring-category">Function</span>.</div><div><pre><code class="language-none">isfile(path) -&gt; Bool</code></pre><p>Returns <code>true</code> if <code>path</code> is a regular file, <code>false</code> otherwise.</p></div><a class="source-link" target="_blank" href="https://github.com/JuliaLang/julia/blob/d55cadc350d426a95fd967121ba77494d08364c8/base/stat.jl#L184-L188">source</a></section><section class="docstring"><div class="docstring-header"><a class="docstring-binding" id="Base.Filesystem.islink" href="#Base.Filesystem.islink"><code>Base.Filesystem.islink</code></a><span class="docstring-category">Function</span>.</div><div><pre><code class="language-none">islink(path) -&gt; Bool</code></pre><p>Returns <code>true</code> if <code>path</code> is a symbolic link, <code>false</code> otherwise.</p></div><a class="source-link" target="_blank" href="https://github.com/JuliaLang/julia/blob/d55cadc350d426a95fd967121ba77494d08364c8/base/stat.jl#L191-L195">source</a></section><section class="docstring"><div class="docstring-header"><a class="docstring-binding" id="Base.Filesystem.ismount" href="#Base.Filesystem.ismount"><code>Base.Filesystem.ismount</code></a><span class="docstring-category">Function</span>.</div><div><pre><code class="language-none">ismount(path) -&gt; Bool</code></pre><p>Returns <code>true</code> if <code>path</code> is a mount point, <code>false</code> otherwise.</p></div><a class="source-link" target="_blank" href="https://github.com/JuliaLang/julia/blob/d55cadc350d426a95fd967121ba77494d08364c8/base/stat.jl#L296-L300">source</a></section><section class="docstring"><div class="docstring-header"><a class="docstring-binding" id="Base.Filesystem.ispath" href="#Base.Filesystem.ispath"><code>Base.Filesystem.ispath</code></a><span class="docstring-category">Function</span>.</div><div><pre><code class="language-none">ispath(path) -&gt; Bool</code></pre><p>Returns <code>true</code> if <code>path</code> is a valid filesystem path, <code>false</code> otherwise.</p></div><a class="source-link" target="_blank" href="https://github.com/JuliaLang/julia/blob/d55cadc350d426a95fd967121ba77494d08364c8/base/stat.jl#L149-L153">source</a></section><section class="docstring"><div class="docstring-header"><a class="docstring-binding" id="Base.Filesystem.issetgid" href="#Base.Filesystem.issetgid"><code>Base.Filesystem.issetgid</code></a><span class="docstring-category">Function</span>.</div><div><pre><code class="language-none">issetgid(path) -&gt; Bool</code></pre><p>Returns <code>true</code> if <code>path</code> has the setgid flag set, <code>false</code> otherwise.</p></div><a class="source-link" target="_blank" href="https://github.com/JuliaLang/julia/blob/d55cadc350d426a95fd967121ba77494d08364c8/base/stat.jl#L214-L218">source</a></section><section class="docstring"><div class="docstring-header"><a class="docstring-binding" id="Base.Filesystem.issetuid" href="#Base.Filesystem.issetuid"><code>Base.Filesystem.issetuid</code></a><span class="docstring-category">Function</span>.</div><div><pre><code class="language-none">issetuid(path) -&gt; Bool</code></pre><p>Returns <code>true</code> if <code>path</code> has the setuid flag set, <code>false</code> otherwise.</p></div><a class="source-link" target="_blank" href="https://github.com/JuliaLang/julia/blob/d55cadc350d426a95fd967121ba77494d08364c8/base/stat.jl#L207-L211">source</a></section><section class="docstring"><div class="docstring-header"><a class="docstring-binding" id="Base.Filesystem.issocket" href="#Base.Filesystem.issocket"><code>Base.Filesystem.issocket</code></a><span class="docstring-category">Function</span>.</div><div><pre><code class="language-none">issocket(path) -&gt; Bool</code></pre><p>Returns <code>true</code> if <code>path</code> is a socket, <code>false</code> otherwise.</p></div><a class="source-link" target="_blank" href="https://github.com/JuliaLang/julia/blob/d55cadc350d426a95fd967121ba77494d08364c8/base/stat.jl#L198-L202">source</a></section><section class="docstring"><div class="docstring-header"><a class="docstring-binding" id="Base.Filesystem.issticky" href="#Base.Filesystem.issticky"><code>Base.Filesystem.issticky</code></a><span class="docstring-category">Function</span>.</div><div><pre><code class="language-none">issticky(path) -&gt; Bool</code></pre><p>Returns <code>true</code> if <code>path</code> has the sticky bit set, <code>false</code> otherwise.</p></div><a class="source-link" target="_blank" href="https://github.com/JuliaLang/julia/blob/d55cadc350d426a95fd967121ba77494d08364c8/base/stat.jl#L221-L225">source</a></section><section class="docstring"><div class="docstring-header"><a class="docstring-binding" id="Base.Filesystem.homedir" href="#Base.Filesystem.homedir"><code>Base.Filesystem.homedir</code></a><span class="docstring-category">Function</span>.</div><div><pre><code class="language-none">homedir() -&gt; AbstractString</code></pre><p>Return the current user&#39;s home directory.</p><div class="admonition note"><div class="admonition-title">Note</div><div class="admonition-text"><p><code>homedir</code> determines the home directory via <code>libuv</code>&#39;s <code>uv_os_homedir</code>. For details (for example on how to specify the home directory via environment variables), see the <a href="http://docs.libuv.org/en/v1.x/misc.html#c.uv_os_homedir"><code>uv_os_homedir</code> documentation</a>.</p></div></div></div><a class="source-link" target="_blank" href="https://github.com/JuliaLang/julia/blob/d55cadc350d426a95fd967121ba77494d08364c8/base/path.jl#L52-L61">source</a></section><section class="docstring"><div class="docstring-header"><a class="docstring-binding" id="Base.Filesystem.dirname" href="#Base.Filesystem.dirname"><code>Base.Filesystem.dirname</code></a><span class="docstring-category">Function</span>.</div><div><pre><code class="language-none">dirname(path::AbstractString) -&gt; AbstractString</code></pre><p>Get the directory part of a path.</p><pre><code class="language-julia-repl">julia&gt; dirname(&quot;/home/myuser&quot;)
&quot;/home&quot;</code></pre><p>See also: <a href="file.html#Base.Filesystem.basename"><code>basename</code></a></p></div><a class="source-link" target="_blank" href="https://github.com/JuliaLang/julia/blob/d55cadc350d426a95fd967121ba77494d08364c8/base/path.jl#L134-L145">source</a></section><section class="docstring"><div class="docstring-header"><a class="docstring-binding" id="Base.Filesystem.basename" href="#Base.Filesystem.basename"><code>Base.Filesystem.basename</code></a><span class="docstring-category">Function</span>.</div><div><pre><code class="language-none">basename(path::AbstractString) -&gt; AbstractString</code></pre><p>Get the file name part of a path.</p><pre><code class="language-julia-repl">julia&gt; basename(&quot;/home/myuser/example.jl&quot;)
&quot;example.jl&quot;</code></pre><p>See also: <a href="file.html#Base.Filesystem.dirname"><code>dirname</code></a></p></div><a class="source-link" target="_blank" href="https://github.com/JuliaLang/julia/blob/d55cadc350d426a95fd967121ba77494d08364c8/base/path.jl#L148-L159">source</a></section><section class="docstring"><div class="docstring-header"><a class="docstring-binding" id="Base.@__FILE__" href="#Base.@__FILE__"><code>Base.@__FILE__</code></a><span class="docstring-category">Macro</span>.</div><div><pre><code class="language-none">@__FILE__ -&gt; AbstractString</code></pre><p><code>@__FILE__</code> expands to a string with the absolute file path of the file containing the macro. Returns <code>nothing</code> if run from a REPL or an empty string if evaluated by <code>julia -e &lt;expr&gt;</code>. Alternatively see <a href="constants.html#Base.PROGRAM_FILE"><code>PROGRAM_FILE</code></a>.</p></div><a class="source-link" target="_blank" href="https://github.com/JuliaLang/julia/blob/d55cadc350d426a95fd967121ba77494d08364c8/base/loading.jl#L548-L554">source</a></section><section class="docstring"><div class="docstring-header"><a class="docstring-binding" id="Base.@__DIR__" href="#Base.@__DIR__"><code>Base.@__DIR__</code></a><span class="docstring-category">Macro</span>.</div><div><pre><code class="language-none">@__DIR__ -&gt; AbstractString</code></pre><p><code>@__DIR__</code> expands to a string with the directory part of the absolute path of the file containing the macro. Returns <code>nothing</code> if run from a REPL or an empty string if evaluated by <code>julia -e &lt;expr&gt;</code>.</p></div><a class="source-link" target="_blank" href="https://github.com/JuliaLang/julia/blob/d55cadc350d426a95fd967121ba77494d08364c8/base/loading.jl#L557-L563">source</a></section><section class="docstring"><div class="docstring-header"><a class="docstring-binding" id="@__LINE__" href="#@__LINE__"><code>@__LINE__</code></a><span class="docstring-category">Macro</span>.</div><div><pre><code class="language-none">@__LINE__ -&gt; Int</code></pre><p><code>@__LINE__</code> expands to the line number of the call-site.</p></div><a class="source-link" target="_blank" href="https://github.com/JuliaLang/julia/blob/d55cadc350d426a95fd967121ba77494d08364c8/base/docs/basedocs.jl#L647-L651">source</a></section><section class="docstring"><div class="docstring-header"><a class="docstring-binding" id="Base.Filesystem.isabspath" href="#Base.Filesystem.isabspath"><code>Base.Filesystem.isabspath</code></a><span class="docstring-category">Function</span>.</div><div><pre><code class="language-none">isabspath(path::AbstractString) -&gt; Bool</code></pre><p>Determines whether a path is absolute (begins at the root directory).</p><pre><code class="language-julia-repl">julia&gt; isabspath(&quot;/home&quot;)
true
julia&gt; isabspath(&quot;home&quot;)
false</code></pre></div><a class="source-link" target="_blank" href="https://github.com/JuliaLang/julia/blob/d55cadc350d426a95fd967121ba77494d08364c8/base/path.jl#L86-L98">source</a></section><section class="docstring"><div class="docstring-header"><a class="docstring-binding" id="Base.Filesystem.isdirpath" href="#Base.Filesystem.isdirpath"><code>Base.Filesystem.isdirpath</code></a><span class="docstring-category">Function</span>.</div><div><pre><code class="language-none">isdirpath(path::AbstractString) -&gt; Bool</code></pre><p>Determines whether a path refers to a directory (for example, ends with a path separator).</p><pre><code class="language-julia-repl">julia&gt; isdirpath(&quot;/home&quot;)
false
julia&gt; isdirpath(&quot;/home/&quot;)
true</code></pre></div><a class="source-link" target="_blank" href="https://github.com/JuliaLang/julia/blob/d55cadc350d426a95fd967121ba77494d08364c8/base/path.jl#L101-L113">source</a></section><section class="docstring"><div class="docstring-header"><a class="docstring-binding" id="Base.Filesystem.joinpath" href="#Base.Filesystem.joinpath"><code>Base.Filesystem.joinpath</code></a><span class="docstring-category">Function</span>.</div><div><pre><code class="language-none">joinpath(parts...) -&gt; AbstractString</code></pre><p>Join path components into a full path. If some argument is an absolute path, then prior components are dropped.</p><pre><code class="language-julia-repl">julia&gt; joinpath(&quot;/home/myuser&quot;,&quot;example.jl&quot;)
&quot;/home/myuser/example.jl&quot;</code></pre></div><a class="source-link" target="_blank" href="https://github.com/JuliaLang/julia/blob/d55cadc350d426a95fd967121ba77494d08364c8/base/path.jl#L194-L204">source</a></section><section class="docstring"><div class="docstring-header"><a class="docstring-binding" id="Base.Filesystem.abspath" href="#Base.Filesystem.abspath"><code>Base.Filesystem.abspath</code></a><span class="docstring-category">Function</span>.</div><div><pre><code class="language-none">abspath(path::AbstractString) -&gt; AbstractString</code></pre><p>Convert a path to an absolute path by adding the current directory if necessary.</p></div><a class="source-link" target="_blank" href="https://github.com/JuliaLang/julia/blob/d55cadc350d426a95fd967121ba77494d08364c8/base/path.jl#L264-L268">source</a><div><pre><code class="language-none">abspath(path::AbstractString, paths::AbstractString...) -&gt; AbstractString</code></pre><p>Convert a set of paths to an absolute path by joining them together and adding the current directory if necessary. Equivalent to <code>abspath(joinpath(path, paths...))</code>.</p></div><a class="source-link" target="_blank" href="https://github.com/JuliaLang/julia/blob/d55cadc350d426a95fd967121ba77494d08364c8/base/path.jl#L271-L276">source</a></section><section class="docstring"><div class="docstring-header"><a class="docstring-binding" id="Base.Filesystem.normpath" href="#Base.Filesystem.normpath"><code>Base.Filesystem.normpath</code></a><span class="docstring-category">Function</span>.</div><div><pre><code class="language-none">normpath(path::AbstractString) -&gt; AbstractString</code></pre><p>Normalize a path, removing &quot;.&quot; and &quot;..&quot; entries.</p><pre><code class="language-julia-repl">julia&gt; normpath(&quot;/home/myuser/../example.jl&quot;)
&quot;/home/example.jl&quot;</code></pre></div><a class="source-link" target="_blank" href="https://github.com/JuliaLang/julia/blob/d55cadc350d426a95fd967121ba77494d08364c8/base/path.jl#L219-L228">source</a></section><section class="docstring"><div class="docstring-header"><a class="docstring-binding" id="Base.Filesystem.realpath" href="#Base.Filesystem.realpath"><code>Base.Filesystem.realpath</code></a><span class="docstring-category">Function</span>.</div><div><pre><code class="language-none">realpath(path::AbstractString) -&gt; AbstractString</code></pre><p>Canonicalize a path by expanding symbolic links and removing &quot;.&quot; and &quot;..&quot; entries.</p></div><a class="source-link" target="_blank" href="https://github.com/JuliaLang/julia/blob/d55cadc350d426a95fd967121ba77494d08364c8/base/path.jl#L319-L323">source</a></section><section class="docstring"><div class="docstring-header"><a class="docstring-binding" id="Base.Filesystem.relpath" href="#Base.Filesystem.relpath"><code>Base.Filesystem.relpath</code></a><span class="docstring-category">Function</span>.</div><div><pre><code class="language-none">relpath(path::AbstractString, startpath::AbstractString = &quot;.&quot;) -&gt; AbstractString</code></pre><p>Return a relative filepath to <code>path</code> either from the current directory or from an optional start directory. This is a path computation: the filesystem is not accessed to confirm the existence or nature of <code>path</code> or <code>startpath</code>.</p></div><a class="source-link" target="_blank" href="https://github.com/JuliaLang/julia/blob/d55cadc350d426a95fd967121ba77494d08364c8/base/path.jl#L350-L356">source</a></section><section class="docstring"><div class="docstring-header"><a class="docstring-binding" id="Base.Filesystem.expanduser" href="#Base.Filesystem.expanduser"><code>Base.Filesystem.expanduser</code></a><span class="docstring-category">Function</span>.</div><div><pre><code class="language-none">expanduser(path::AbstractString) -&gt; AbstractString</code></pre><p>On Unix systems, replace a tilde character at the start of a path with the current user&#39;s home directory.</p></div><a class="source-link" target="_blank" href="https://github.com/JuliaLang/julia/blob/d55cadc350d426a95fd967121ba77494d08364c8/base/path.jl#L342-L346">source</a></section><section class="docstring"><div class="docstring-header"><a class="docstring-binding" id="Base.Filesystem.splitdir" href="#Base.Filesystem.splitdir"><code>Base.Filesystem.splitdir</code></a><span class="docstring-category">Function</span>.</div><div><pre><code class="language-none">splitdir(path::AbstractString) -&gt; (AbstractString, AbstractString)</code></pre><p>Split a path into a tuple of the directory name and file name.</p><pre><code class="language-julia-repl">julia&gt; splitdir(&quot;/home/myuser&quot;)
(&quot;/home&quot;, &quot;myuser&quot;)</code></pre></div><a class="source-link" target="_blank" href="https://github.com/JuliaLang/julia/blob/d55cadc350d426a95fd967121ba77494d08364c8/base/path.jl#L116-L125">source</a></section><section class="docstring"><div class="docstring-header"><a class="docstring-binding" id="Base.Filesystem.splitdrive" href="#Base.Filesystem.splitdrive"><code>Base.Filesystem.splitdrive</code></a><span class="docstring-category">Function</span>.</div><div><pre><code class="language-none">splitdrive(path::AbstractString) -&gt; (AbstractString, AbstractString)</code></pre><p>On Windows, split a path into the drive letter part and the path part. On Unix systems, the first component is always the empty string.</p></div><a class="source-link" target="_blank" href="https://github.com/JuliaLang/julia/blob/d55cadc350d426a95fd967121ba77494d08364c8/base/path.jl#L44-L49">source</a></section><section class="docstring"><div class="docstring-header"><a class="docstring-binding" id="Base.Filesystem.splitext" href="#Base.Filesystem.splitext"><code>Base.Filesystem.splitext</code></a><span class="docstring-category">Function</span>.</div><div><pre><code class="language-none">splitext(path::AbstractString) -&gt; (AbstractString, AbstractString)</code></pre><p>If the last component of a path contains a dot, split the path into everything before the dot and everything including and after the dot. Otherwise, return a tuple of the argument unmodified and the empty string.</p><pre><code class="language-julia-repl">julia&gt; splitext(&quot;/home/myuser/example.jl&quot;)
(&quot;/home/myuser/example&quot;, &quot;.jl&quot;)
julia&gt; splitext(&quot;/home/myuser/example&quot;)
(&quot;/home/myuser/example&quot;, &quot;&quot;)</code></pre></div><a class="source-link" target="_blank" href="https://github.com/JuliaLang/julia/blob/d55cadc350d426a95fd967121ba77494d08364c8/base/path.jl#L162-L176">source</a></section><footer><hr/><a class="previous" href="constants.html"><span class="direction">Previous</span><span class="title">Constants</span></a><a class="next" href="io-network.html"><span class="direction">Next</span><span class="title">I/O and Network</span></a></footer></article></body></html>