MCPcopy Create free account
hub / github.com/Effect-TS/effect / makeNoop

Function makeNoop

packages/effect/src/FileSystem.ts:825–919  ·  view source on GitHub ↗
(fileSystem: Partial<FileSystem>)

Source from the content-addressed store, hash-verified

823 * @since 4.0.0
824 */
825export const makeNoop = (fileSystem: Partial<FileSystem>): FileSystem =>
826 FileSystem.of({
827 [TypeId]: TypeId,
828 access(path) {
829 return Effect.fail(notFound("access", path))
830 },
831 chmod(path) {
832 return Effect.fail(notFound("chmod", path))
833 },
834 chown(path) {
835 return Effect.fail(notFound("chown", path))
836 },
837 copy(path) {
838 return Effect.fail(notFound("copy", path))
839 },
840 copyFile(path) {
841 return Effect.fail(notFound("copyFile", path))
842 },
843 glob(pattern) {
844 return Effect.fail(notFound("glob", pattern))
845 },
846 exists() {
847 return Effect.succeed(false)
848 },
849 link(path) {
850 return Effect.fail(notFound("link", path))
851 },
852 makeDirectory() {
853 return Effect.die("not implemented")
854 },
855 makeTempDirectory() {
856 return Effect.die("not implemented")
857 },
858 makeTempDirectoryScoped() {
859 return Effect.die("not implemented")
860 },
861 makeTempFile() {
862 return Effect.die("not implemented")
863 },
864 makeTempFileScoped() {
865 return Effect.die("not implemented")
866 },
867 open(path) {
868 return Effect.fail(notFound("open", path))
869 },
870 readDirectory(path) {
871 return Effect.fail(notFound("readDirectory", path))
872 },
873 readFile(path) {
874 return Effect.fail(notFound("readFile", path))
875 },
876 readFileString(path) {
877 return Effect.fail(notFound("readFileString", path))
878 },
879 readLink(path) {
880 return Effect.fail(notFound("readLink", path))
881 },
882 realPath(path) {

Callers 1

layerNoopFunction · 0.85

Calls 1

ofMethod · 0.65

Tested by

no test coverage detected