Menu

Delete Directory EFS 0.2.8

Help
2009-04-27
2013-04-24
  • Leandro Maia

    Leandro Maia - 2009-04-27

    Hi,

    I read a lot of messages in the forum, always the same problem: Delete directory.

    But, I seems that doesn't exist a solution yet.

    The admin affirm that rmfile deletes the directory, but this is not true.

    Had someone fixed the code or implemented the function rmdir ?

    Regards.

     
  • Piotr Bocian

    Piotr Bocian - 2009-10-31

    Documentation of fs_findFile() says:

    Return value: Returns 0 when nothing was found, 1 when the thing found was a file and 2 if the thing found was a directory.

    while, rmfile () checks only if return code of fs_findFile() is 1. I tried to modify line:

    if((fs_findFile(fs,(eint8*)filename,&loc,0))==1){

    with

    if(fs_findFile(fs,(eint8*)filename,&loc,0)){ // finds files OR DIRs

    and it seems to be OK. Correct me if I'm wrong.

     

Log in to post a comment.