<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.spheredev.org/index.php?action=history&amp;feed=atom&amp;title=API%3AFS.fullPath</id>
	<title>API:FS.fullPath - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.spheredev.org/index.php?action=history&amp;feed=atom&amp;title=API%3AFS.fullPath"/>
	<link rel="alternate" type="text/html" href="http://wiki.spheredev.org/index.php?title=API:FS.fullPath&amp;action=history"/>
	<updated>2026-09-23T20:30:34Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>http://wiki.spheredev.org/index.php?title=API:FS.fullPath&amp;diff=10141&amp;oldid=prev</id>
		<title>Bruce Pascoe at 03:22, 21 August 2017</title>
		<link rel="alternate" type="text/html" href="http://wiki.spheredev.org/index.php?title=API:FS.fullPath&amp;diff=10141&amp;oldid=prev"/>
		<updated>2017-08-21T03:22:44Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 03:22, 21 August 2017&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{DISPLAYTITLE:FS.fullPath()}}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{DISPLAYTITLE:FS.fullPath()}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The &#039;&#039;&#039;&amp;lt;tt&amp;gt;FS.fullPath()&amp;lt;/tt&amp;gt;&#039;&#039;&#039; function computes the canonical [[SphereFS]] pathname for a specified relative path and base directory.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The &#039;&#039;&#039;&amp;lt;tt&amp;gt;FS.fullPath()&amp;lt;/tt&amp;gt;&#039;&#039;&#039; &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[API:Functions|Core API]] &lt;/ins&gt;function computes the canonical [[SphereFS]] pathname for a specified relative path and base directory.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===== Usage =====&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===== Usage =====&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Bruce Pascoe</name></author>
	</entry>
	<entry>
		<id>http://wiki.spheredev.org/index.php?title=API:FS.fullPath&amp;diff=10134&amp;oldid=prev</id>
		<title>Bruce Pascoe: FS.fullPath() API page</title>
		<link rel="alternate" type="text/html" href="http://wiki.spheredev.org/index.php?title=API:FS.fullPath&amp;diff=10134&amp;oldid=prev"/>
		<updated>2017-08-17T17:34:35Z</updated>

		<summary type="html">&lt;p&gt;FS.fullPath() API page&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{DISPLAYTITLE:FS.fullPath()}}&lt;br /&gt;
&lt;br /&gt;
The &amp;#039;&amp;#039;&amp;#039;&amp;lt;tt&amp;gt;FS.fullPath()&amp;lt;/tt&amp;gt;&amp;#039;&amp;#039;&amp;#039; function computes the canonical [[SphereFS]] pathname for a specified relative path and base directory.&lt;br /&gt;
&lt;br /&gt;
===== Usage =====&lt;br /&gt;
&lt;br /&gt;
 &amp;#039;&amp;#039;canon_path&amp;#039;&amp;#039; = &amp;#039;&amp;#039;&amp;#039;FS.fullPath&amp;#039;&amp;#039;&amp;#039;(&amp;#039;&amp;#039;file_or_dir_name&amp;#039;&amp;#039;[, &amp;#039;&amp;#039;base_path&amp;#039;&amp;#039;]);&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== API Information ==&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;lt;tt&amp;gt;FS.fullPath()&amp;lt;/tt&amp;gt;&amp;#039;&amp;#039;&amp;#039; returns the complete, canonical SphereFS pathname for a given file or directory.  If the path to be resolved already includes a SphereFS prefix such as &amp;lt;tt&amp;gt;@/&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;~/&amp;lt;/tt&amp;gt;, then Sphere simply canonicalizes it (by removing any relative components); otherwise the path itself is considered relative and will be rebased before canonicalization.  This allows you to get the full pathname of a file or directory given only its name and a known base directory, which can be useful in libraries.&lt;br /&gt;
&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Name&lt;br /&gt;
!Type&lt;br /&gt;
!Default Value&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;lt;tt&amp;gt;file_or_dir_name&amp;lt;/tt&amp;gt;&amp;#039;&amp;#039;&lt;br /&gt;
|style=&amp;quot;text-align: center;&amp;quot;|&amp;#039;&amp;#039;string&amp;#039;&amp;#039;&lt;br /&gt;
|&amp;#039;&amp;#039;n/a (Required)&amp;#039;&amp;#039;&lt;br /&gt;
|The name of a file or directory.  May include path components.  It doesn&amp;#039;t need to actually exist.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;lt;tt&amp;gt;base_path&amp;lt;/tt&amp;gt;&amp;#039;&amp;#039;&lt;br /&gt;
|style=&amp;quot;text-align: center;&amp;quot;|&amp;#039;&amp;#039;string&amp;#039;&amp;#039;&lt;br /&gt;
|&amp;lt;tt&amp;gt;&amp;quot;@/&amp;quot;&amp;lt;/tt&amp;gt;&lt;br /&gt;
|Specifies the base directory onto which relative paths will be rebased.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Return Value ===&lt;br /&gt;
&lt;br /&gt;
The full SphereFS pathname of the specified file or directory.&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;&lt;br /&gt;
* [[API:FS.relativePath|FS.relativePath()]]&lt;br /&gt;
&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Sphere 2 API]]&lt;/div&gt;</summary>
		<author><name>Bruce Pascoe</name></author>
	</entry>
</feed>