Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(94)

Side by Side Diff: lib/src/static_handler.dart

Issue 1583693002: Get rid of all the library tags. (Closed) Base URL: git@github.com:dart-lang/shelf_static@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « lib/src/directory_listing.dart ('k') | lib/src/util.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library shelf_static.static_handler;
6
7 import 'dart:io'; 5 import 'dart:io';
8 6
9 import 'package:http_parser/http_parser.dart'; 7 import 'package:http_parser/http_parser.dart';
10 import 'package:mime/mime.dart' as mime; 8 import 'package:mime/mime.dart' as mime;
11 import 'package:path/path.dart' as p; 9 import 'package:path/path.dart' as p;
12 import 'package:shelf/shelf.dart'; 10 import 'package:shelf/shelf.dart';
13 11
14 import 'directory_listing.dart'; 12 import 'directory_listing.dart';
15 import 'util.dart'; 13 import 'util.dart';
16 14
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 var filePath = p.join(dirPath, defaultFile); 127 var filePath = p.join(dirPath, defaultFile);
130 128
131 var file = new File(filePath); 129 var file = new File(filePath);
132 130
133 if (file.existsSync()) { 131 if (file.existsSync()) {
134 return file; 132 return file;
135 } 133 }
136 134
137 return null; 135 return null;
138 } 136 }
OLDNEW
« no previous file with comments | « lib/src/directory_listing.dart ('k') | lib/src/util.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698