X-Git-Url: http://gitweb.scilab.org/?p=scilab.git;a=blobdiff_plain;f=scilab%2Fmodules%2Ffileio%2Fhelp%2Fen_US%2Fdirectory%2Fchdir.xml;h=88c5e0f80453a4b557ee52c7bd7e6961c64a86b4;hp=4bb2ec0c089d6ace255b6a3b41c0e105607d67f4;hb=807fe176da3bcb88ce29ad8401cd97aa22cc1c1f;hpb=025bb6738d47ccbd9093b90bc22b9710c41227c0 diff --git a/scilab/modules/fileio/help/en_US/directory/chdir.xml b/scilab/modules/fileio/help/en_US/directory/chdir.xml index 4bb2ec0..88c5e0f 100644 --- a/scilab/modules/fileio/help/en_US/directory/chdir.xml +++ b/scilab/modules/fileio/help/en_US/directory/chdir.xml @@ -3,8 +3,8 @@ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab * Copyright (C) 2008 - INRIA * ... - * * Copyright (C) 2012 - 2016 - Scilab Enterprises + * Copyright (C) 2019 - Samuel GOUGEON * * This file is hereby licensed under the terms of the GNU GPL v2.0, * pursuant to article 5.3.4 of the CeCILL v.2.1. @@ -14,7 +14,10 @@ * along with this program. * --> - + chdir changes Scilab current directory @@ -25,7 +28,8 @@ Syntax - b = chdir(path) + + b = chdir(path) realpath = cd(path) cd path @@ -34,17 +38,18 @@ Arguments - b + path - - a boolean %t if chdir operation is ok - + a character string. The default path is home. - path + b - a character string + + a boolean: %t if chdir operation + is successful. + @@ -64,35 +69,69 @@ - Note that path conversion is performed and for example - SCI/modules/core/macros is a valid pattern for both Unix and Windows. - If path is empty change to "home" directory. + Note that, if any, SCI, + SCIHOME, + TMPDIR and + home headings constants in path are converted. + For example, SCI/modules/core/macros is a valid pattern for + both Unix and Windows. Examples +cd .. +cd TMPDIR +p = cd() +p == home + ]]> + chdir("SCI/etc") + ans = + T + +--> pwd + ans = + C:\Programs\scilab\scilab-6.0.2\etc + + +--> cd .. + ans = + C:\Programs\scilab\scilab-6.0.2 + +--> cd TMPDIR + ans = + C:\Users\Me\AppData\Local\Temp\SCI_TMP_5444_26901 + +--> p = cd() + p = + C:\Users\Me + +--> p == home + ans = + T +]]> See also + isdir + + pwd - SCI + home - SCIHOME + filebrowser - TMPDIR + uigetdir