Difference between revisions of "Dir"

From MiniScript Wiki
Jump to navigation Jump to search
(Created page with "In Mini Micro, the <c>dir</c> command lists files in the current or given directory. {{template:stub}} Category:Mini Micro")
 
 
Line 1: Line 1:
In [[Mini Micro]], the <c>dir</c> command lists files in the current or given directory.
+
In [[Mini Micro]], the <c>dir</c> command lists files in the current or given directory. Syntax:
 +
 
 +
  dir ''path''
 +
 
 +
The ''path'' parameter is optional.  If given, it may be a full (absolute) path, or a partial path relative to the current working directory.
 +
 
 +
The <c>dir</c> command is implemented in [[Startup.ms|/sys/startup.ms]].
 +
 
 +
== Examples ==
 +
 
 +
The following command-line session shows the results of <c>dir "/sys/data"</c>, to list the contents of the ''data'' folder on the ''[[/sys]]'' disk.
 +
 
 +
<pre>]dir "/sys/data"
 +
/sys/data :
 +
  attribution.txt                      788  2020-07-31 21:41:42
 +
  benchmark                            DIR  2020-11-01 06:25:04
 +
  codeSnippets.txt                    526  2020-02-23 07:31:16
 +
  englishWords.txt                  668855  2020-08-18 15:14:24
 +
  fatbits                              DIR  2020-11-01 06:25:04
 +
  platformDemoMap.txt                3392  2020-12-30 15:50:50
 +
</pre>
  
{{template:stub}}
 
 
[[Category:Mini Micro]]
 
[[Category:Mini Micro]]

Latest revision as of 13:35, 30 October 2021

In Mini Micro, the dir command lists files in the current or given directory. Syntax:

 dir path

The path parameter is optional. If given, it may be a full (absolute) path, or a partial path relative to the current working directory.

The dir command is implemented in /sys/startup.ms.

Examples

The following command-line session shows the results of dir "/sys/data", to list the contents of the data folder on the /sys disk.

]dir "/sys/data"
/sys/data :
  attribution.txt                      788  2020-07-31 21:41:42
  benchmark                            DIR  2020-11-01 06:25:04
  codeSnippets.txt                     526  2020-02-23 07:31:16
  englishWords.txt                  668855  2020-08-18 15:14:24
  fatbits                              DIR  2020-11-01 06:25:04
  platformDemoMap.txt                 3392  2020-12-30 15:50:50