/* function to determine if FullPath is under current filesystem. */
BOOLEAN IsCurrentFileSystem(IN CONST CHAR16 *FullPath, IN CONST CHAR16 *Cwd)
/* function to determine if FullPath is under current filesystem. */
BOOLEAN IsCurrentFileSystem(IN CONST CHAR16 *FullPath, IN CONST CHAR16 *Cwd)
{
  CHAR16  *Splitter1;
  CHAR16  *Splitter2;
  Splitter1 = NULL;
  Splitter2 = NULL;
  ASSERT (FullPath != NULL);
  Splitter1 = StrStr (FullPath, L":");
  if (Splitter1 == NULL) {
    return TRUE;
  }
  Splitter2 = StrStr (Cwd, L":");
  if (((UINTN)Splitter1 - (UINTN)FullPath) != ((UINTN)Splitter2 - (UINTN)Cwd)) {
    return FALSE;
  } else {
    if (StrniCmp (FullPath, Cwd, ((UINTN)Splitter1 - (UINTN)FullPath) / sizeof (CHAR16)) == 0) {
      return TRUE;
    } else {
      return FALSE;
    }
  }
}