Additions:
||-s,-sys||Converts the filename to local system notation otherwise outputs Java notation||
||-r,-relative||Path relative to current directory||
||-r,-relative||Path relative to current directory||
Deletions:
Additions:
||-a,-absolute|| absolute path||
Deletions:
Additions:
||-c,-canonical||canonical path||
If [filename] is omitted the current directory is used
Resolve a absolute path on windows
If [filename] is omitted the current directory is used
Resolve a absolute path on windows
Deletions:
If [filename] is ommitted the current directory is used
Resolve a absoute path on windows
Additions:
||-N|| exactly as given, including directory if present but converted to java format||
Deletions:
Additions:
====Options====
Deletions:
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 ||
||-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:
-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 ||
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
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
Additions:
c:/work/dei/xmlsh/trunk/foo.bar
Deletions:
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.
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:
Additions:
||-base
Deletions:
Additions:
-d|| Directory component ||
Deletions:
Additions:
-b || basename of file without directory or extension ||
-B ||basename of file with directory but without extension||
-n|| name of file without directory ||
-B ||basename of file with directory but without extension||
-n|| name of file without directory ||
Deletions:
-B base ||basename of file with directory but without extension||
-n name|| name of file without directory ||
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.
-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 ||(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||
Additions:
-b base || (without directory component) ||
-d directory|| ||
-d directory|| ||
Deletions:
-d directory||||
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]]
||-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:
-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
Deletions:
Additions:
======Command xfile======
Deletions:
Deletions:
-b;base (without directory component);
-B;base (with directory component)
"}}
Additions:
-uri
-u outputs a file scheme URI
-u outputs a file scheme URI
Additions:
[[CommandsInternal]]
Additions:
{{table columns="2" cellpadding="1" cells="header1;header2;-base
-b;base (without directory component);
-B;base (with directory component)
"}}
-b;base (without directory component);
-B;base (with directory component)
"}}
Deletions:
Additions:
{{table columns="2" cellpadding="1" cells="header1;header2;cell1;cell2"}}
-base base (without directory component)
-b
-base base (without directory component)
-b
Deletions:
-b base (without directory component)
Deletions:
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
-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 (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
Additions:
-base
-basename
-name
-fullname
-dir
-absolute
-cannonical
-extension
-basename
-name
-fullname
-dir
-absolute
-cannonical
-extension
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
-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:
-b base
-n name
Additions:
$ xfile -e $PWD/foo.bar
.bar
.bar
Additions:
If [filename] is ommitted the current directory is used
Additions:
xfile [options] [filename]
options are one of
-b base
-n name
-d directory
-a absolute path
-c cannonical path
-e extension
options are one of
-b base
-n name
-d directory
-a absolute path
-c cannonical path
-e extension
Deletions:
Additions:
xfile [-b -d -a -c -e] filename [.ext]