Maple Professional
Maple Academic
Maple Student Edition
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professional
MapleSim Academic
Maple T.A. - Testing & Assessment
Maple T.A. MAA Placement Test Suite
Möbius - Online Courseware
Machine Design / Industrial Automation
Aerospace
Vehicle Engineering
Robotics
Power Industries
System Simulation and Analysis
Model development for HIL
Plant Modeling for Control Design
Robotics/Motion Control/Mechatronics
Other Application Areas
Mathematics Education
Engineering Education
High Schools & Two-Year Colleges
Testing & Assessment
Students
Financial Modeling
Operations Research
High Performance Computing
Physics
Live Webinars
Recorded Webinars
Upcoming Events
MaplePrimes
Maplesoft Blog
Maplesoft Membership
Maple Ambassador Program
MapleCloud
Technical Whitepapers
E-Mail Newsletters
Maple Books
Math Matters
Application Center
MapleSim Model Gallery
User Case Studies
Exploring Engineering Fundamentals
Teaching Concepts with Maple
Maplesoft Welcome Center
Teacher Resource Center
Student Help Center
FileTools[AbsolutePath] - make file path absolute
Calling Sequence
AbsolutePath(path, directory)
Parameters
path
-
string; file path, relative or absolute
directory
(optional) string; directory to which relative paths refer
Description
The AbsolutePath(path, directory) command returns an equivalent of the path which is an absolute path, that is, independent of the value of the current directory. If path is already absolute, then path is returned.
The optional argument directory specifies the directory to which path refers, if it is relative. Its default value is the current directory as provided by the currentdir command. The argument directory must itself be an absolute path.
Note: AbsolutePath does not remove the special directories . and .. from path.
Examples
The absolute path /home/maple is returned verbatim.
See Also
FileTools, FileTools[Exists], FileTools[IsDirectory], FileTools[IsExecutable], FileTools[IsReadable], FileTools[IsWritable], FileTools[MakeDirectory]
Download Help Document