Skip to content

Commit 9cf4e5c

Browse files
fix: appease analyzer
Co-authored-by: MasterMarcoHD <MasterMarcoHD@users.noreply.github.com>
1 parent 76fda4c commit 9cf4e5c

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

lib/src/file_system_module/infra/services/file_system/default_file_system_service_io.dart

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,14 @@ class DefaultFileSystemService extends FileSystemService {
142142
details: <String, Object?>{'path': path.value},
143143
),
144144
);
145+
case FileSystemEntityType.pipe:
146+
return IoErr<void>(
147+
IoFailure(
148+
code: IoFailureCode.unsupported,
149+
message: 'Unsupported filesystem entity type.',
150+
details: <String, Object?>{'path': path.value},
151+
),
152+
);
145153
}
146154
return const IoOk<void>(null);
147155
} on FileSystemException catch (error, stackTrace) {
@@ -228,6 +236,14 @@ class DefaultFileSystemService extends FileSystemService {
228236
details: <String, Object?>{'path': from.value},
229237
),
230238
);
239+
case FileSystemEntityType.pipe:
240+
return IoErr<void>(
241+
IoFailure(
242+
code: IoFailureCode.unsupported,
243+
message: 'Unsupported filesystem entity type.',
244+
details: <String, Object?>{'path': from.value},
245+
),
246+
);
231247
}
232248
return const IoOk<void>(null);
233249
} on FileSystemException catch (error, stackTrace) {
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
1+
/// A configuration class for local storage settings.
2+
///
3+
/// Modules importing [LocalStorageModule] must have a config extending this class to provide necessary configuration for local storage operations, such as directory and file naming conventions.
14
class LocalStorageConfig {
5+
/// The prefix used for local storage.
6+
///
7+
/// Used for directory and file naming to avoid conflicts with other applications using the same package for local storage.
28
final String localStoragePrefix;
39

10+
/// Creates a new instance of [LocalStorageConfig].
411
LocalStorageConfig({required this.localStoragePrefix});
512
}

0 commit comments

Comments
 (0)