This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

ffind function not serching the file

Hey,
The parallel Nand flash memory is interfaced with lpc1788 and file system is also implemented using keil library.

i have labeled the drive "MyDrv" while formating and created a folder with the name "Proto".
I create files with extensions '*.txt'.
Now before creating, the code searches in the nand memory (ffind), if file with the same name exists, then the function returns back and does not create a file.

for eg: i create a file with name 'Asp.txt' in proto folder. and fill it with some data. after the file is created, when i search for the same file using 'ffind("Proto\Asp.txt", &info)', it returns '0x1' (which indicates no such file found) and hence the function does not return.

but when i search 'Proto\Asp*.txt' it returns '0x0'.

The question is do i have to perform searches with '*' character (wildcard *)? cant we search for exact name using ffind('Proto\Asp.txt', &info)??

Parents
  • So your earlier testimony that your code did not deal with any strings in "quotes" was, essentially, a lie. Good we've cleaned that up.

    And now we're supposed to believe that you went to the length of stripping all parts of the final pathname that won't change from the data that have to be transferred over the serial control line, but not the '\\'. So you transfer "\\A" to open file "Proto\\A.txt". Really? I find that rather hard to believe.

Reply
  • So your earlier testimony that your code did not deal with any strings in "quotes" was, essentially, a lie. Good we've cleaned that up.

    And now we're supposed to believe that you went to the length of stripping all parts of the final pathname that won't change from the data that have to be transferred over the serial control line, but not the '\\'. So you transfer "\\A" to open file "Proto\\A.txt". Really? I find that rather hard to believe.

Children