nxtlib/src/Protocol.cs
/// <summary>
/// [Native] Find the first file that matches a pattern.
/// </summary>
/// <param name="pattern">The pattern to search against.  Allows the following wildcards:
///  filename.Extension, filename.*, *.Extension, and *.*</param>
/// <returns>The structure FileTypeReply.</returns>
[Native] Find the first file that matches a pattern.
[ Native ] Find the first file that matches a pattern .
public FindFileReply FindFirst(string pattern)
        {
            ValidateFilename(pattern);
            byte[] request = new byte[22];
            request[0] = 0x01;
            request[1] = (byte)MessageCommand.FindFirst;
            Encoding.ASCII.GetBytes(pattern).CopyTo(request, 2);
            return Parse_FindFile(request);
        }
public FindFileReply FindFirst ( string pattern ) { ValidateFilename ( pattern ) ; byte [ ] request = new byte [ 22 ] ; request [ 0 ] = 0x01 ; request [ 1 ] = ( byte ) MessageCommand . FindFirst ; Encoding . ASCII . GetBytes ( pattern ) . CopyTo ( request , 2 ) ; return Parse_FindFile ( request ) ; }
[Native] Find the first file that matches a pattern.
[ Native ] Find the first file that matches a pattern .
The structure FileTypeReply.
The structure FileTypeReply .
pattern
string
The pattern to search against.  Allows the following wildcards:
filename.Extension, filename.*, *.Extension, and *.
The pattern to search against . Allows the following wildcards : filename . Extension filename . * * . Extension and * .