[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: changing directories and getting filedates



Hi,

> I bet that your "mode" argument to mkdir() was 0. Create your directory
> with mkdir("/the/dir/to/create", 0777) and you should be able to then
> use chdir to go in it (the "0" in "0777" is important, so that the
> compiler knows that this is octal and not decimal, and for those
> worrying about 0777 permissions, the umask will remove some of that,
> just be happy).

The problem was that the directory must have the executable bit, then it
works.
 
bye

Felix Kollmann, DG5PT

Future Interactive 

email: fkollmann@gmx.net
http://www.futureint.com

----
Don't fear the future, because fear is the path to the dark side.
Fear is to angry. Angry is to hate and hate is to suffering.
-- Yoda