Revision [1935]

Last edited on 2014-10-06 00:37:29 by DavidLee
Additions:
||-s,-sys||Converts the filename to local system notation otherwise outputs Java notation||
||-r,-relative||Path relative to current directory||
Deletions:
||-s||Converts the filename to local system notation otherwise outputs Java notation||


Revision [1683]

Edited on 2011-01-30 16:58:06 by DavidPriest [sp]
Additions:
||-a,-absolute|| absolute path||
Deletions:
||-a,absolute|| absolute path||


Revision [1682]

Edited on 2011-01-30 16:57:44 by DavidPriest [sp]
Additions:
||-c,-canonical||canonical path||
If [filename] is omitted the current directory is used
Resolve a absolute path on windows
Deletions:
||-c,-cannonical||cannonical path||
If [filename] is ommitted the current directory is used
Resolve a absoute path on windows


Revision [1490]

Edited on 2010-08-09 18:06:55 by DavidLee [sp]
Additions:
||-N|| exactly as given, including directory if present but converted to java format||
Deletions:
||-N,-fullname|| exactly as given, including directory if present but converted to java format||


Revision [1229]

Edited on 2010-02-15 10:15:52 by DavidLee [sp]
Additions:
====Options====
Deletions:
options are one of


Revision [1228]

Edited on 2010-02-15 10:15:22 by DavidLee [sp]
Additions:
||-b,-base|| basename of file without directory or extension ||
||-B,-basename||basename of file with directory but without extension||
||-n,-name|| name of file without directory ||
||-N,-fullname|| exactly as given, including directory if present but converted to java format||
||-d,-dir|| Directory component ||
||-a,absolute|| absolute path||
||-c,-cannonical||cannonical path||
||-e,-extension||extension only including the "." ||
||-u,-uri||outputs a file scheme URI ||
Deletions:
||-base
-b || basename of file without directory or extension ||
||-basename
-B ||basename of file with directory but without extension||
||-name
-n|| name of file without directory ||
||-fullname
-N name|| exactly as given, including directory if present but converted to java format||
||-dir
-d|| Directory component ||
||-absolute
-a || absolute path||
||-cannonical
-c|| cannonical path||
||-extension
-e || extension only including the "." ||
||-uri
-u|| outputs a file scheme URI ||


Revision [1108]

Edited on 2009-12-29 08:25:42 by DavidLee [sp]
Additions:
If [base] is an absolute path (on windows this means a drive letter or UNC path, on unix starting with /) then
filename is ignored. This allows xfile to be used to conditionally resolve relative paths.
Resolve a relative path
xfile /tmp foo/bar
/tmp/foo/bar
Resolve a absoute path on windows
xfile /tmp c:/foo/bar
c:/foo/bar


Revision [935]

Edited on 2009-11-24 18:14:31 by DavidLee [sp]
Additions:
c:/work/dei/xmlsh/trunk/foo.bar
Deletions:
c:\work\dei\xmlsh\trunk\foo.bar


Revision [934]

Edited on 2009-11-24 18:12:54 by DavidLee [sp]
Additions:
||-s||Converts the filename to local system notation otherwise outputs Java notation||
On Windows systems, the output filename is converted to the Java notation unless the -s argument is given. This changes \ to / but preserves any drive letter.
Deletions:
On Windows systems, the output filename is converted to the Java notation. This changes \ to / but preserves any drive letter.


Revision [933]

Edited on 2009-11-24 18:08:32 by DavidLee [sp]
Additions:
||-base
Deletions:
||-base base


Revision [932]

Edited on 2009-11-24 18:08:24 by DavidLee [sp]
Additions:
-d|| Directory component ||
Deletions:
-d directory|| Directory component ||


Revision [931]

Edited on 2009-11-24 18:08:12 by DavidLee [sp]
Additions:
-b || basename of file without directory or extension ||
-B ||basename of file with directory but without extension||
-n|| name of file without directory ||
Deletions:
-b base || basename of file without directory or extension ||
-B base ||basename of file with directory but without extension||
-n name|| name of file without directory ||


Revision [930]

Edited on 2009-11-24 18:06:59 by DavidLee [sp]
Additions:
-b base || basename of file without directory or extension ||
-B base ||basename of file with directory but without extension||
-n name|| name of file without directory ||
-N name|| exactly as given, including directory if present but converted to java format||
-d directory|| Directory component ||
-e || extension only including the "." ||
-u|| outputs a file scheme URI ||
====Windows Notes====
On Windows systems, the output filename is converted to the Java notation. This changes \ to / but preserves any drive letter.
Deletions:
-b base || (without directory component) ||
-B base ||(with directory component)||
-n name|| (without directory component)||
-N name||(exactly as given, including directory if present)||
-d directory|| ||
-e || extension||
-u|| outputs a file scheme URI||


Revision [929]

Edited on 2009-11-24 18:03:03 by DavidLee [sp]
Additions:
-b base || (without directory component) ||
-d directory|| ||
Deletions:
-b base||(without directory component)||
-d directory||||


Revision [928]

Edited on 2009-11-24 18:01:54 by DavidLee [sp]
Additions:
xfile [ [[SerializationOptions serialization options]] ] [options] [filename [base]]
||-base base
-b base||(without directory component)||
||-basename
-B base ||(with directory component)||
||-name
-n name|| (without directory component)||
||-fullname
-N name||(exactly as given, including directory if present)||
||-dir
-d directory||||
||-absolute
-a || absolute path||
||-cannonical
-c|| cannonical path||
||-extension
-e || extension||
||-uri
-u|| outputs a file scheme URI||
Supports the standard [ [[SerializationOptions serialization options]] ]
xfile -a foo.bar
Result
xfile -e $PWD/foo.bar
Result
[[Commands]]
Deletions:
xfile [options] [filename [base]]
-base base (without directory component)
-b
-basename
-B base (with directory component)
-name
-n name (without directory component)
-fullname
-N name (exactly as given, including directory if present)
-dir
-d directory
-absolute
-a absolute path
-cannonical
-c cannonical path
-extension
-e extension
-uri
-u outputs a file scheme URI
$ xfile -a foo.bar
$ xfile -e $PWD/foo.bar


Revision [775]

Edited on 2009-09-16 07:58:51 by DavidLee [sp]
Deletions:
[[CommandsInternal]]


Revision [649]

Edited on 2009-07-28 07:55:48 by DavidLee [sp]
Additions:
======Command xfile======


Revision [632]

Edited on 2009-06-20 03:46:31 by DavidLee [sp]
Deletions:


Revision [631]

Edited on 2009-06-20 03:46:16 by DavidLee [sp]
Deletions:
{{table columns="2" cellpadding="1" cells="header1;header2;-base
-b;base (without directory component);
-B;base (with directory component)
"}}


Revision [630]

Edited on 2009-06-20 03:45:17 by DavidLee [sp]
Additions:
-uri
-u outputs a file scheme URI


Revision [368]

Edited on 2009-01-05 04:07:02 by DavidLee [sp]
Additions:
[[CommandsInternal]]


Revision [339]

Edited on 2009-01-03 06:36:34 by DavidLee [sp]
Additions:
{{table columns="2" cellpadding="1" cells="header1;header2;-base
-b;base (without directory component);
-B;base (with directory component)
"}}
Deletions:
{{table columns="2" cellpadding="1" cells="header1;header2;cell1;cell2"}}


Revision [338]

Edited on 2009-01-03 06:35:34 by DavidLee [sp]
Additions:
{{table columns="2" cellpadding="1" cells="header1;header2;cell1;cell2"}}
-base base (without directory component)
-b
Deletions:
-base
-b base (without directory component)


Revision [337]

Edited on 2009-01-03 06:32:39 by DavidLee [sp]
Deletions:
-E


Revision [336]

Edited on 2009-01-03 06:32:00 by DavidLee [sp]
Additions:
-b base (without directory component)
-B base (with directory component)
-n name (without directory component)
-N name (exactly as given, including directory if present)
-d directory
-a absolute path
-c cannonical path
-e extension
-E
Deletions:
-b base (without directory component)
-B base (with directory component)
-n name (without directory component)
-N name (exactly as given, including directory if present)
-d directory
-a absolute path
-c cannonical path
-e extension


Revision [335]

Edited on 2009-01-03 06:31:21 by DavidLee [sp]
Additions:
-base
-basename
-name
-fullname
-dir
-absolute
-cannonical
-extension


Revision [333]

Edited on 2008-12-29 07:11:15 by DavidLee [sp]
Additions:
xfile [options] [filename [base]]
-b base (without directory component)
-B base (with directory component)
-n name (without directory component)
-N name (exactly as given, including directory if present)
if [base] is provided then it is added as a new component to the filename prior to executing the options
Deletions:
xfile [options] [filename]
-b base
-n name


Revision [256]

Edited on 2008-07-06 12:31:42 by DavidLee [sp]
Additions:
$ xfile -e $PWD/foo.bar
.bar


Revision [255]

Edited on 2008-07-06 12:21:44 by DavidLee [sp]
Additions:
If [filename] is ommitted the current directory is used


Revision [254]

Edited on 2008-07-06 12:20:53 by DavidLee [sp]
Additions:
xfile [options] [filename]
options are one of
-b base
-n name
-d directory
-a absolute path
-c cannonical path
-e extension
Deletions:
xfile [-b -d -a -c -e] filename [.ext]


Revision [253]

Edited on 2008-07-06 12:16:09 by DavidLee [sp]
Additions:
xfile [-b -d -a -c -e] filename [.ext]
Deletions:
xfile [-b -d -a -c -e] filename


Revision [252]

The oldest known version of this page was created on 2008-07-06 12:15:56 by DavidLee [sp]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki