logo
search icon
Close
FrameworkLibrariesCommunityDocumentation
Chapters
Usage
Deepkit Filesystem

Memory Filesystem

For the memory filesystem, the filesystem is stored in memory. This means that the filesystem is not persistent and will be lost when the application is exited. This is useful especially for testing purposes.

It is part of @deepkit/filesystem, so not additional installation is required.

Usage

import { FilesystemMemoryAdapter, Filesystem } from '@deepkit/filesystem';

const adapter = new FilesystemMemoryAdapter();
const filesystem = new Filesystem(adapter);
IntroductionExamplesJoin Discord
App
Getting startedExamplesArguments & FlagsDependency InjectionModulesServicesEventsLoggerConfiguration
Framework
Getting startedExamplesDatabaseTestingDeploymentPublic Assets
Runtime Types
IntroductionGetting startedExamplesType AnnotationsReflectionSerializationValidationCustom serializerExternal TypesBytecode
Dependency Injection
IntroductionGetting startedExamplesProvidersInjectionConfigurationScopes
Filesystem
Getting startedExamplesAppLocalMemoryAWS S3FTPsFTP (SSH)Google Storage
Broker
Getting startedCacheMessage BusMessage QueueAtomic LocksKey Value
HTTP
IntroductionGetting startedExamplesInput & OutputViewsDependency InjectionEventsMiddlewareSecurity
RPC
IntroductionGetting startedExamplesDependency InjectionSecurityErrorsTransport
Database ORM
IntroductionGetting startedExamplesEntitySessionQueryTransactionInheritanceRelationsEventsMigrationsORM BrowserRaw AccessSeedingComposite primary key
Plugins
Soft-Delete