Go to most recent revision |
Blame |
Last modification |
View Log
| Download
| RSS feed
int cmd_cd(char dir[])
{
char temp[256];
unsigned result;
if (NULL == dir)
{
return FALSE;
}
return FALSE;
if ( ( 0 == strcmp(dir
, "..") ) && ( 0 != strcmp(cur_dir
, "/")) )
{
cur_dir
[strlen(cur_dir
)-1]='\0';
dir_truncate(cur_dir);
return FALSE;
}
if ( '/' == dir[0])
{
if ( dir_check(dir) )
{
return TRUE;
}
return FALSE;
}
else
{
if ( dir_check(temp) )
{
return TRUE;
}
return FALSE;
}
}