public FileSystemCommandResult(EFileSystemStatusCode statusCode, string path)
 {
     if (path == null)
     {
         throw new ArgumentNullException(path);
     }
     StatusCode = statusCode;
     Path       = path;
 }
        private EFileSystemStatusCode SendCommand(string argument, out string result)
        {
            if (argument == null)
            {
                throw new ArgumentNullException(nameof(argument));
            }
            EFileSystemStatusCode ret = EFileSystemStatusCode.UnknownError;
            IMyProgrammableBlock  file_system_programmable_block = FileSystemProgrammableBlock;

            result = string.Empty;
            if (file_system_programmable_block != null)
            {
                if (file_system_programmable_block.TryRun(argument))
                {
                    result = file_system_programmable_block.CustomData;
                    if (!(Enum.TryParse(result, out ret)))
                    {
                        ret = EFileSystemStatusCode.CustomData;
                    }
                }
            }
            return(ret);
        }