<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/PT-BR/fileGetPath?action=history&amp;feed=atom</id>
	<title>PT-BR/fileGetPath - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/PT-BR/fileGetPath?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=PT-BR/fileGetPath&amp;action=history"/>
	<updated>2026-04-28T14:34:40Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=PT-BR/fileGetPath&amp;diff=78706&amp;oldid=prev</id>
		<title>Lettify: Created page with &quot;__NOTOC__ {{BR/Funcao compartilhada}} {{PT-BR/New feature/item|3.0153|1.5.3|7446| Esta função retorna o caminho de um determinado arquivo. }}  ==Sintaxe== &lt;syntaxhighlight lang=&quot;lua&quot;&gt; string fileGetPath ( file theFile ) &lt;/syntaxhighlight&gt; {{PT-BR/POO||file:getPath|path}}  ===Argumentos necessários=== *'''theFile:''' O '''arquivo''' que você quer obter o caminho.  ===Retorno=== Retorna uma ''string'' representando o caminho do arquivo, ''false'' se um arquivo inv...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=PT-BR/fileGetPath&amp;diff=78706&amp;oldid=prev"/>
		<updated>2023-12-20T18:43:51Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;__NOTOC__ {{BR/Funcao compartilhada}} {{PT-BR/New feature/item|3.0153|1.5.3|7446| Esta função retorna o caminho de um determinado arquivo. }}  ==Sintaxe== &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; string fileGetPath ( file theFile ) &amp;lt;/syntaxhighlight&amp;gt; {{PT-BR/POO||&lt;a href=&quot;/index.php?title=File&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;File (page does not exist)&quot;&gt;file&lt;/a&gt;:getPath|path}}  ===Argumentos necessários=== *&amp;#039;&amp;#039;&amp;#039;theFile:&amp;#039;&amp;#039;&amp;#039; O &amp;#039;&amp;#039;&amp;#039;arquivo&amp;#039;&amp;#039;&amp;#039; que você quer obter o caminho.  ===Retorno=== Retorna uma &amp;#039;&amp;#039;string&amp;#039;&amp;#039; representando o caminho do arquivo, &amp;#039;&amp;#039;false&amp;#039;&amp;#039; se um arquivo inv...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__NOTOC__&lt;br /&gt;
{{BR/Funcao compartilhada}}&lt;br /&gt;
{{PT-BR/New feature/item|3.0153|1.5.3|7446|&lt;br /&gt;
Esta função retorna o caminho de um determinado arquivo.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Sintaxe==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string fileGetPath ( file theFile )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{PT-BR/POO||[[file]]:getPath|path}}&lt;br /&gt;
&lt;br /&gt;
===Argumentos necessários===&lt;br /&gt;
*'''theFile:''' O '''arquivo''' que você quer obter o caminho.&lt;br /&gt;
&lt;br /&gt;
===Retorno===&lt;br /&gt;
Retorna uma ''string'' representando o caminho do arquivo, ''false'' se um arquivo inválido estiver sido especificado.&lt;br /&gt;
&lt;br /&gt;
==Exemplo==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Exemplo 1&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local newFile = fileCreate(&amp;quot;test.txt&amp;quot;)                -- tentamos criar um arquivo&lt;br /&gt;
if (newFile) then                                       -- verificamos se o arquivo foi criado&lt;br /&gt;
    local path = fileGetPath(newFile)&lt;br /&gt;
    outputChatBox(&amp;quot;New file created at: &amp;quot;..path, root, 0, 255, 0)&lt;br /&gt;
    fileClose(newFile)                                -- fechamos o arquivo depois que trabalharmos com ele&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Veja também==&lt;br /&gt;
{{PT-BR/File functions}}&lt;/div&gt;</summary>
		<author><name>Lettify</name></author>
	</entry>
</feed>