CH-J SM Mobilequản lý máy chủ qua SSH
Menu
Mã nguồn đã công bố

CH-J SM Mobile

Duyệt thư mục và tệp của một bản phát hành ứng dụng cụ thể.

Tải mã nguồn dạng ZIP
CH-J / SM Mobile 175 tệp
sm-mobile-20261016T185235Z-8e93ecc1b59a Ngày thêm: · Ngày dựng:
local_files.dart Ngày thêm: Chưa ghi nhận ngày 872 B · 32 dòng
Mã Tải tệp xuống
1import 'dart:typed_data';
2import 'dart:io';
3import 'package:path_provider/path_provider.dart';
4import '../core/failure.dart';
6Future<Uint8List> readBounded(Stream<List<int>> stream, int limit) async {
7 final bytes = BytesBuilder(copy: false);
8 await for (final chunk in stream) {
9 if (bytes.length + chunk.length > limit) {
10 throw const Failure('invalidImport');
11 }
12 bytes.add(chunk);
13 }
14 return bytes.takeBytes();
17Future<void> purgeTransferCache() async {
18 final root = await getTemporaryDirectory();
19 await for (final entry in root.list(followLinks: false)) {
20 if (entry is Directory &&
21 entry.path
22 .split(Platform.pathSeparator)
23 .last
24 .startsWith('sm-transfer-')) {
25 try {
26 await entry.delete(recursive: true);
27 } catch (_) {
28 /* Retry at next launch. */
29 }
30 }
31 }
SHA-256032fcb7ef1f7a21014510cc696a9831bd9ea4a2bafb016c97a79149d7e7486ce

CH-J Proprietary Software License 1.14 · Mã nguồn được cung cấp theo CH-J Proprietary Software License 1.14. Việc công khai mã nguồn không thay đổi các điều khoản giấy phép và không cấp thêm quyền nào.

SHA-256 của tệp nén46e427a43e87af091004f36145590bda8fe90086dfb0f631afeb5029fb0b5655
Tệp