file_type 1.0.1 copy "file_type: ^1.0.1" to clipboard
file_type: ^1.0.1 copied to clipboard

outdated

Gets the type of a file

example/main.dart

import 'dart:io';

import 'package:file_type/file_type.dart';

main() => Directory.current.list(recursive: true).listen((entity) {
      if (entity is File && getLastFileType(entity.path) == '.dart') {
        print('Dart file found! ${entity.path}');
      }
    });
0
likes
0
pub points
9%
popularity

Publisher

unverified uploader

Gets the type of a file

Repository (GitLab)
View/report issues

License

unknown (LICENSE)

More

Packages that depend on file_type