void FAT_int_DelLFN(tVFS_Node *Node, int ID);
#endif
int FAT_ReadDir(tVFS_Node *Node, int ID, char Dest[FILENAME_MAX]);
-tVFS_Node *FAT_FindDir(tVFS_Node *Node, const char *Name);
+tVFS_Node *FAT_FindDir(tVFS_Node *Node, const char *Name, Uint Flags);
tVFS_Node *FAT_GetNodeFromINode(tVFS_Node *Root, Uint64 Inode);
#if SUPPORT_WRITE
tVFS_Node *FAT_Mknod(tVFS_Node *Node, const char *Name, Uint Flags);
{
int len = FAT_int_ConvertUTF16_to_UTF8(NULL, LongFileName);
if( len > FILENAME_MAX ) {
+ LEAVE('i', -1);
return -1;
}
FAT_int_ConvertUTF16_to_UTF8((Uint8*)Dest, LongFileName);
#if USE_LFN
}
#endif
+ LEAVE('i', 0);
return 0;
}
* \fn tVFS_Node *FAT_FindDir(tVFS_Node *node, char *name)
* \brief Finds an entry in the current directory
*/
-tVFS_Node *FAT_FindDir(tVFS_Node *Node, const char *Name)
+tVFS_Node *FAT_FindDir(tVFS_Node *Node, const char *Name, Uint Flags)
{
fat_filetable fileent;