<?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-05-10T12:42:01Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.29.0</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 class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;' lang='en'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; 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='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{DISPLAYTITLE:FS.fullPath()}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; 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='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; 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 '''&amp;lt;tt&amp;gt;FS.fullPath()&amp;lt;/tt&amp;gt;''' function computes the canonical [[SphereFS]] pathname for a specified relative path and base directory.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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 '''&amp;lt;tt&amp;gt;FS.fullPath()&amp;lt;/tt&amp;gt;''' &lt;ins class=&quot;diffchange diffchange-inline&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='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===== Usage =====&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; 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;lt;tt&amp;gt;FS.fullPath()&amp;lt;/tt&amp;gt;''' 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;
 ''canon_path'' = '''FS.fullPath'''(''file_or_dir_name''[, ''base_path'']);&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;lt;tt&amp;gt;FS.fullPath()&amp;lt;/tt&amp;gt;''' 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;lt;tt&amp;gt;file_or_dir_name&amp;lt;/tt&amp;gt;''&lt;br /&gt;
|style=&amp;quot;text-align: center;&amp;quot;|''string''&lt;br /&gt;
|''n/a (Required)''&lt;br /&gt;
|The name of a file or directory.  May include path components.  It doesn't need to actually exist.&lt;br /&gt;
|-&lt;br /&gt;
|''&amp;lt;tt&amp;gt;base_path&amp;lt;/tt&amp;gt;''&lt;br /&gt;
|style=&amp;quot;text-align: center;&amp;quot;|''string''&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>