1System.chdir(3kaya)          Kaya module reference         System.chdir(3kaya)
2
3
4

NAME

6       System::chdir - Change directory
7

SYNOPSIS

9       Void chdir( String path )
10

DESCRIPTION

12       Change  the  current working directory to another directory. The direcā€
13       tory path given can be relative or absolute.
14
15
16    // currently in /home/me/working
17    chdir("sub"); // now in /home/me/working/sub
18    chdir("../../.."); // now in /home
19    chdir("/tmp"); // now in /tmp
20
21       The function behaves in a similar fashion on Windows
22
23
24    // currently in C:\kaya\programs
25    chdir("sub"); // now in C:\kaya\programs\sub
26    chdir("..\\.."); // now in C:\kaya
27    chdir("\\Program Files"); // now in C:\Program Files
28    chdir("F:\\data"); // now in F:\data
29
30       Note the need to escape the backslashes used as a path separator.
31

AUTHORS

33       Kaya  standard  library  by  Edwin  Brady,  Chris  Morris  and   others
34       (kaya@kayalang.org). For further information see http://kayalang.org/
35

LICENSE

37       The  Kaya  standard  library  is free software; you can redistribute it
38       and/or modify it under the terms  of  the  GNU  Lesser  General  Public
39       License  (version  2.1  or  any later version) as published by the Free
40       Software Foundation.
41
42
43
44Kaya                             December 2010             System.chdir(3kaya)
Impressum