<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://wikiti.brandonw.net/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wikiti.brandonw.net/index.php?action=history&amp;feed=atom&amp;title=83Plus%3ASoftware%3Ausb8x%2FAsm_Interface%2FMSD%2FFAT_lookupPath</id>
		<title>83Plus:Software:usb8x/Asm Interface/MSD/FAT lookupPath - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wikiti.brandonw.net/index.php?action=history&amp;feed=atom&amp;title=83Plus%3ASoftware%3Ausb8x%2FAsm_Interface%2FMSD%2FFAT_lookupPath"/>
		<link rel="alternate" type="text/html" href="https://wikiti.brandonw.net/index.php?title=83Plus:Software:usb8x/Asm_Interface/MSD/FAT_lookupPath&amp;action=history"/>
		<updated>2026-04-08T08:33:17Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.23.5</generator>

	<entry>
		<id>https://wikiti.brandonw.net/index.php?title=83Plus:Software:usb8x/Asm_Interface/MSD/FAT_lookupPath&amp;diff=5064&amp;oldid=prev</id>
		<title>Brandonw at 08:59, 17 August 2006</title>
		<link rel="alternate" type="text/html" href="https://wikiti.brandonw.net/index.php?title=83Plus:Software:usb8x/Asm_Interface/MSD/FAT_lookupPath&amp;diff=5064&amp;oldid=prev"/>
				<updated>2006-08-17T08:59:18Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Synopsis ==&lt;br /&gt;
'''Name:''' FAT_lookupPath&lt;br /&gt;
&lt;br /&gt;
'''Minimum usb8x version:''' 0.10&lt;br /&gt;
&lt;br /&gt;
Determines whether a file/directory exists.&lt;br /&gt;
&lt;br /&gt;
=== Inputs ===&lt;br /&gt;
* HL points to an ASCIIZ string containing a path to a file/directory&lt;br /&gt;
&lt;br /&gt;
=== Outputs ===&lt;br /&gt;
* HL points to the 32-byte directory entry for the file/directory&lt;br /&gt;
* C set if not found&lt;br /&gt;
&lt;br /&gt;
=== Destroys ===&lt;br /&gt;
* AF, BC, DE, HL&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
This routine will also point to the directory entry if found (useful for [[../DOS_getFileSize|DOS_getFileSize]], for example).&lt;br /&gt;
Example code to find whether &amp;quot;readme.txt&amp;quot; exists in the &amp;quot;test&amp;quot; directory:&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 ld hl,sFilename&lt;br /&gt;
 U_CALL FAT_lookupPath&lt;br /&gt;
 ;HL points to directory entry&lt;br /&gt;
 jr c,notFound&lt;br /&gt;
 ...&lt;br /&gt;
 notFound:&lt;br /&gt;
 ...&lt;br /&gt;
 sFilename: DB &amp;quot;/test/readme.txt&amp;quot;,0&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
If you are writing an application, you must copy the strings you use to RAM first, or else usb8x will not be able to see them.&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
* [[../DOS_getFileSize|DOS_getFileSize]] - Get file size for specified directory entry&lt;/div&gt;</summary>
		<author><name>Brandonw</name></author>	</entry>

	</feed>