<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://jimandi.com/SDK/index.php?action=history&amp;feed=atom&amp;title=FileEntry</id>
	<title>FileEntry - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://jimandi.com/SDK/index.php?action=history&amp;feed=atom&amp;title=FileEntry"/>
	<link rel="alternate" type="text/html" href="https://jimandi.com/SDK/index.php?title=FileEntry&amp;action=history"/>
	<updated>2026-10-25T11:56:19Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.2</generator>
	<entry>
		<id>https://jimandi.com/SDK/index.php?title=FileEntry&amp;diff=155&amp;oldid=prev</id>
		<title>WikiSysop: /* References */</title>
		<link rel="alternate" type="text/html" href="https://jimandi.com/SDK/index.php?title=FileEntry&amp;diff=155&amp;oldid=prev"/>
		<updated>2021-08-04T15:22:05Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;References&lt;/span&gt;&lt;/span&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 09:22, 4 August 2021&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-l90&quot;&gt;Line 90:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 90:&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;==References==&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;==References==&lt;/div&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;'''Please Note:''' The base material for the contents found in this WiKi was sourced from Vectric Lua Interface for Gadgets, version &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;2&lt;/del&gt;.&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;05&lt;/del&gt;, published &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;September 12&lt;/del&gt;, &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;2018&lt;/del&gt;. by Vectric Ltd. Most current document from Vertric can be downloaded at [https://gadgets.vectric.com/developerinfo.html Vertric Developer Information]&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;'''Please Note:''' The base material for the contents found in this WiKi was sourced from Vectric Lua Interface for Gadgets, version &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;10&lt;/ins&gt;.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;0&lt;/ins&gt;, published &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;August 21&lt;/ins&gt;, &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;2019&lt;/ins&gt;. by Vectric Ltd. Most current document from Vertric can be downloaded at [https://gadgets.vectric.com/developerinfo.html Vertric Developer Information]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>WikiSysop</name></author>
	</entry>
	<entry>
		<id>https://jimandi.com/SDK/index.php?title=FileEntry&amp;diff=112&amp;oldid=prev</id>
		<title>WikiSysop: Created page with &quot;link=User Interface Category:SDK This object is returned from the:GetFileAtIndex() method of DirectoryReader and holds information about a fil...&quot;</title>
		<link rel="alternate" type="text/html" href="https://jimandi.com/SDK/index.php?title=FileEntry&amp;diff=112&amp;oldid=prev"/>
		<updated>2021-08-04T04:16:42Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&lt;a href=&quot;/SDK/index.php/File:Back.jpg&quot; title=&quot;File:Back.jpg&quot;&gt;right|50px|link=User Interface&lt;/a&gt; &lt;a href=&quot;/SDK/index.php?title=Category:SDK&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Category:SDK (page does not exist)&quot;&gt;Category:SDK&lt;/a&gt; This object is returned from the:GetFileAtIndex() method of DirectoryReader and holds information about a fil...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[File:Back.jpg|right|50px|link=User Interface]]&lt;br /&gt;
[[Category:SDK]]&lt;br /&gt;
This object is returned from the:GetFileAtIndex() method of DirectoryReader and holds information about a file found while building the list of files and directories.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Properties==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===.Name===&lt;br /&gt;
'''Interaction:''' Read Only&lt;br /&gt;
&lt;br /&gt;
'''Returns:''' (string) Name of the file (this is the full pathname to the file)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===.FileName===&lt;br /&gt;
'''Interaction:''' Read Only&lt;br /&gt;
&lt;br /&gt;
'''Returns:''' (string) Name of the file&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===.FileNameNoExt===&lt;br /&gt;
'''Interaction:''' Read Only&lt;br /&gt;
&lt;br /&gt;
'''Returns:''' (string) Name of the file without the extension&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===.Size===&lt;br /&gt;
'''Interaction:''' Read Only&lt;br /&gt;
&lt;br /&gt;
'''Returns:''' (integer) Size of the file in bytes&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Example Code:====&lt;br /&gt;
    &amp;lt;nowiki&amp;gt;From DXF_Batch_Processor.Lua&lt;br /&gt;
     -- [[ ----------- DirectoryProcessor --------------- &lt;br /&gt;
    |&lt;br /&gt;
    | Given a root directory and file filter, call the passed function with&lt;br /&gt;
    | every file which matches the filter&lt;br /&gt;
    |&lt;br /&gt;
    | The do_sub_dirs flag indicates if sub directories should be processed as&lt;br /&gt;
    | well as the root directory&lt;br /&gt;
    |&lt;br /&gt;
    ]]&lt;br /&gt;
    function DirectoryProcessor(job, dir_name, filter, do_sub_dirs, function_ptr)&lt;br /&gt;
    local num_files_processed = 0&lt;br /&gt;
    local directory_reader = DirectoryReader()&lt;br /&gt;
    local cur_dir_reader = DirectoryReader()&lt;br /&gt;
    directory_reader:BuildDirectoryList(dir_name, do_sub_dirs)&lt;br /&gt;
    directory_reader:SortDirs()&lt;br /&gt;
    local number_of_directories = directory_reader:NumberOfDirs()&lt;br /&gt;
    for i = 1, number_of_directories do&lt;br /&gt;
    local cur_directory = directory_reader:DirAtIndex(i)&lt;br /&gt;
     -- get contents of current directory&lt;br /&gt;
     -- dont include sub dirs, use passed filter&lt;br /&gt;
    cur_dir_reader:BuildDirectoryList(cur_directory.Name, false)&lt;br /&gt;
    cur_dir_reader:GetFiles(filter, true, false)&lt;br /&gt;
     -- call passed method for each file:&lt;br /&gt;
    local num_files_in_dir = cur_dir_reader:NumberOfFiles()&lt;br /&gt;
    for j=1, num_files_in_dir  do&lt;br /&gt;
    local file_info = cur_dir_reader:FileAtIndex(j)&lt;br /&gt;
    if not function_ptr(job, file_info.Name) then&lt;br /&gt;
    return negitve 1&lt;br /&gt;
    end&lt;br /&gt;
    num_files_processed = num_files_processed + 1&lt;br /&gt;
    end&lt;br /&gt;
     -- empty out our directory object ready for next go&lt;br /&gt;
    cur_dir_reader:ClearDirs()&lt;br /&gt;
    cur_dir_reader:ClearFiles()&lt;br /&gt;
    end&lt;br /&gt;
    return num_files_processed&lt;br /&gt;
    end &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Back.jpg|right|50px|link=User Interface]]&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
'''Please Note:''' The base material for the contents found in this WiKi was sourced from Vectric Lua Interface for Gadgets, version 2.05, published September 12, 2018. by Vectric Ltd. Most current document from Vertric can be downloaded at [https://gadgets.vectric.com/developerinfo.html Vertric Developer Information]&lt;/div&gt;</summary>
		<author><name>WikiSysop</name></author>
	</entry>
</feed>