{"id":13485947,"url":"https://github.com/google/jimfs","last_synced_at":"2025-05-14T08:05:14.811Z","repository":{"id":11323125,"uuid":"13745124","full_name":"google/jimfs","owner":"google","description":"An in-memory file system for Java 7+","archived":false,"fork":false,"pushed_at":"2025-05-01T20:16:01.000Z","size":6535,"stargazers_count":2477,"open_issues_count":39,"forks_count":279,"subscribers_count":109,"default_branch":"master","last_synced_at":"2025-05-14T08:04:19.498Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/google.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2013-10-21T14:39:27.000Z","updated_at":"2025-05-14T02:34:24.000Z","dependencies_parsed_at":"2023-10-23T16:39:21.252Z","dependency_job_id":"31c1f01c-9840-4082-acbe-e0c1b476d703","html_url":"https://github.com/google/jimfs","commit_stats":{"total_commits":641,"total_committers":28,"mean_commits":"22.892857142857142","dds":0.42433697347893917,"last_synced_commit":"376f3dacc7f61272c8a7ab6b633d10ffa0f5f437"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google%2Fjimfs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google%2Fjimfs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google%2Fjimfs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/google%2Fjimfs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/google","download_url":"https://codeload.github.com/google/jimfs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254101588,"owners_count":22014907,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T18:00:34.793Z","updated_at":"2025-05-14T08:05:14.792Z","avatar_url":"https://github.com/google.png","language":"Java","funding_links":[],"categories":["Projects","Java","I. Development","Miscellaneous","项目"],"sub_categories":["Miscellaneous","1. Common frameworks and libraries","杂项"],"readme":"Jimfs\n=====\n\nJimfs is an in-memory file system for Java 8 and above, implementing the\n[java.nio.file](http://docs.oracle.com/javase/7/docs/api/java/nio/file/package-summary.html)\nabstract file system APIs.\n\n[![Build Status](https://github.com/google/jimfs/workflows/CI/badge.svg?branch=master)](https://github.com/google/jimfs/actions)\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.google.jimfs/jimfs/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.google.jimfs/jimfs)\n\nGetting started\n---------------\n\nThe latest release is\n[1.3.0](https://github.com/google/jimfs/releases/tag/v1.3.0).\n\nIt is available in Maven Central as\n[com.google.jimfs:jimfs:1.3.0](http://search.maven.org/#artifactdetails%7Ccom.google.jimfs%7Cjimfs%7C1.3.0%7Cjar):\n\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003ecom.google.jimfs\u003c/groupId\u003e\n  \u003cartifactId\u003ejimfs\u003c/artifactId\u003e\n  \u003cversion\u003e1.3.0\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\nBasic use\n---------\n\nThe simplest way to use Jimfs is to just get a new `FileSystem` instance from the `Jimfs` class and\nstart using it:\n\n```java\nimport com.google.common.jimfs.Configuration;\nimport com.google.common.jimfs.Jimfs;\n...\n\n// For a simple file system with Unix-style paths and behavior:\nFileSystem fs = Jimfs.newFileSystem(Configuration.unix());\nPath foo = fs.getPath(\"/foo\");\nFiles.createDirectory(foo);\n\nPath hello = foo.resolve(\"hello.txt\"); // /foo/hello.txt\nFiles.write(hello, ImmutableList.of(\"hello world\"), StandardCharsets.UTF_8);\n```\n\nWhat's supported?\n-----------------\n\nJimfs supports almost all the APIs under `java.nio.file`. It supports:\n\n- Creating, deleting, moving and copying files and directories.\n- Reading and writing files with `FileChannel` or `SeekableByteChannel`, `InputStream`,\n  `OutputStream`, etc.\n- Symbolic links.\n- Hard links to regular files.\n- `SecureDirectoryStream`, for operations relative to an _open_ directory.\n- Glob and regex path filtering with `PathMatcher`.\n- Watching for changes to a directory with a `WatchService`.\n- File attributes. Built-in attribute views that can be supported include \"basic\", \"owner\",\n  \"posix\", \"unix\", \"dos\", \"acl\" and \"user\". Do note, however, that not all attribute views provide\n  _useful_ attributes. For example, while setting and reading POSIX file permissions is possible\n  with the \"posix\" view, those permissions will not actually affect the behavior of the file system.\n\nJimfs also supports creating file systems that, for example, use Windows-style paths and (to an\nextent) behavior. In general, however, file system behavior is modeled after UNIX and may not\nexactly match any particular real file system or platform.\n\nLicense\n-------\n\n```\nCopyright 2013 Google Inc.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoogle%2Fjimfs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgoogle%2Fjimfs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoogle%2Fjimfs/lists"}