コード例 #1
0
        public void get_file_contents_Name(FileInput input)
        {
            var file = _files.Find(input.Name);

            if (file == null)
            {
                _writer.Write(MimeType.Text, "Could not find file " + input.Name);
            }
            else
            {
                _writer.WriteFile(MimeType.Text, file.Path, input.Name);
            }
        }
コード例 #2
0
        public void get_file_contents_Name(FileInput input)
        {
            var file = _files.Find(input.Name);

            if (file == null)
            {
                _writer.Write( MimeType.Text,"Could not find file " + input.Name);
            }
            else
            {
                _writer.WriteFile(MimeType.Text, file.Path, input.Name);
            }
        }
コード例 #3
0
        public void get_file_contents_Name(FileInput input)
        {
            var file = _files.Find(input.Name);

            _writer.WriteFile(MimeType.Text, file.Path, input.Name);
        }
コード例 #4
0
 public void get_file_contents_Name(FileInput input)
 {
     var file = _files.Find(input.Name);
     _writer.WriteFile(MimeType.Text, file.Path, input.Name);
 }