{"id":45589377,"url":"https://github.com/abarhub/vfs4jexample","last_synced_at":"2026-02-23T12:01:27.903Z","repository":{"id":45160675,"uuid":"227216280","full_name":"abarhub/vfs4jexample","owner":"abarhub","description":null,"archived":false,"fork":false,"pushed_at":"2022-02-12T17:49:51.000Z","size":32,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-03-25T15:31:01.082Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/abarhub.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-12-10T21:10:12.000Z","updated_at":"2021-12-27T07:24:28.000Z","dependencies_parsed_at":"2022-08-28T14:12:54.619Z","dependency_job_id":null,"html_url":"https://github.com/abarhub/vfs4jexample","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/abarhub/vfs4jexample","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abarhub%2Fvfs4jexample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abarhub%2Fvfs4jexample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abarhub%2Fvfs4jexample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abarhub%2Fvfs4jexample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abarhub","download_url":"https://codeload.github.com/abarhub/vfs4jexample/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abarhub%2Fvfs4jexample/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29742149,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-23T07:44:07.782Z","status":"ssl_error","status_checked_at":"2026-02-23T07:44:07.432Z","response_time":90,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":"2026-02-23T12:01:23.257Z","updated_at":"2026-02-23T12:01:27.860Z","avatar_url":"https://github.com/abarhub.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vfs4jexample\n\nExemple d'utilisation de la librairie [vfs4j](https://github.com/abarhub/vfs4j)\n\nPour lancer l'exemple, il faut builder le projet `mvn clean install`, puis il faut lancer la commande `run.bat`.\nLe projet a été fait sous windows, mais il peut être adapter facilement sous linux en s'inspirant du run.bat et en modifiant le fichier conf/vfs4j.properties\n\n## Exemple 1\n\nC'est le script `run.bat` qu'il faut executer.\nCela crée deux fichiers.\nVoici le log :\n```log\n18:47:12.362 [main] INFO  org.vfs4j.example.simple.Main - main\n18:47:12.366 [main] INFO  io.github.abarhub.vfs.core.api.VFS4JDefaultFileManager - Start initialization\n18:47:12.368 [main] INFO  io.github.abarhub.vfs.core.api.VFS4JDefaultFileManager - VFS4J config file is '.\\conf\\vfs.properties'\n18:47:12.372 [main] INFO  io.github.abarhub.vfs.core.config.VFS4JConfig - config map: {dir2=VFS4JPathParameter[path=D:\\projet\\vfs4jexample\\simple\\workspace\\dir2, readonly=false, mode=STANDARD], dir1=VFS4JPathParameter[path=D:\\projet\\vfs4jexample\\simple\\workspace\\dir1, readonly=false, mode=STANDARD]}\n18:47:12.374 [main] INFO  io.github.abarhub.vfs.core.plugin.audit.VFS4JAuditPlugins - create VFS4JAuditPlugins\n18:47:12.374 [main] INFO  io.github.abarhub.vfs.core.plugin.audit.VFS4JAuditPlugins - init VFS4JAuditPlugins: plugins1\n18:47:12.376 [main] INFO  io.github.abarhub.vfs.core.config.VFS4JConfig - config plugins: {plugins1=io.github.abarhub.vfs.core.plugin.audit.VFS4JAuditPlugins@7e5afaa6, plugins2=io.github.abarhub.vfs.core.plugin.unclosed.VFS4JUnclosedPlugins@63a12c68}\n18:47:12.382 [main] INFO  io.github.abarhub.vfs.core.api.VFS4JDefaultFileManager - End initialization\n18:47:12.384 [main] INFO  io.github.abarhub.vfs.core.plugin.audit.VFS4JAuditPlugins - deleteIfExists for file dir1:fichier1.txt\n18:47:12.384 [main] INFO  io.github.abarhub.vfs.core.plugin.audit.VFS4JAuditPlugins - deleteIfExists for file dir1:fichier2.txt\n18:47:12.385 [main] INFO  io.github.abarhub.vfs.core.plugin.audit.VFS4JAuditPlugins - deleteIfExists for file dir2:fichier1.txt\n18:47:12.385 [main] INFO  io.github.abarhub.vfs.core.plugin.audit.VFS4JAuditPlugins - deleteIfExists for file dir2:fichier2.txt\n18:47:12.388 [main] INFO  io.github.abarhub.vfs.core.plugin.audit.VFS4JAuditPlugins - createFile for file dir1:fichier1.txt\n18:47:12.388 [main] INFO  org.vfs4j.example.simple.Main - create dir1:fichier1.txt\n18:47:12.389 [main] INFO  io.github.abarhub.vfs.core.plugin.audit.VFS4JAuditPlugins - write for file dir1:fichier2.txt\n18:47:12.389 [main] INFO  org.vfs4j.example.simple.Main - create dir1:fichier2.txt\n18:47:12.389 [main] INFO  org.vfs4j.example.simple.Main - file dir1:fichier1.txt exists\n18:47:12.389 [main] INFO  org.vfs4j.example.simple.Main - file dir1:fichier2.txt exists\n18:47:12.389 [main] INFO  org.vfs4j.example.simple.Main - copy from dir1:fichier1.txt to dir2:fichier1.txt\n18:47:12.391 [main] INFO  io.github.abarhub.vfs.core.plugin.audit.VFS4JAuditPlugins - copy from file dir1:fichier1.txt to file dir2:fichier1.txt\n18:47:12.391 [main] INFO  org.vfs4j.example.simple.Main - copy from dir1:fichier2.txt to dir2:fichier2.txt\n18:47:12.392 [main] INFO  io.github.abarhub.vfs.core.plugin.audit.VFS4JAuditPlugins - copy from file dir1:fichier2.txt to file dir2:fichier2.txt\n18:47:12.392 [main] INFO  org.vfs4j.example.simple.Main - file dir2:fichier1.txt exists\n18:47:12.392 [main] INFO  org.vfs4j.example.simple.Main - file dir2:fichier2.txt exists\n18:47:12.392 [main] INFO  org.vfs4j.example.simple.Main - files dir1:fichier2.txt and dir2:fichier2.txt are equals\n18:47:12.392 [main] INFO  org.vfs4j.example.simple.Main - Fin du programme\n```\n\n\n## Exemple 2\n\nC'est le script `run_test2.bat` qu'il faut executer.\nCela ouvre un fichier, sans le fermé, puis ça appel System.gc(), et dans les log, il y a un message informatif.\n\n```log\n18:48:13.698 [main] INFO  org.vfs4j.example.simple.Main - main\n18:48:13.701 [main] INFO  io.github.abarhub.vfs.core.api.VFS4JDefaultFileManager - Start initialization\n18:48:13.704 [main] INFO  io.github.abarhub.vfs.core.api.VFS4JDefaultFileManager - VFS4J config file is '.\\conf\\vfs.properties'\n18:48:13.709 [main] INFO  io.github.abarhub.vfs.core.config.VFS4JConfig - config map: {dir2=VFS4JPathParameter[path=D:\\projet\\vfs4jexample\\simple\\workspace\\dir2, readonly=false, mode=STANDARD], dir1=VFS4JPathParameter[path=D:\\projet\\vfs4jexample\\simple\\workspace\\dir1, readonly=false, mode=STANDARD]}\n18:48:13.710 [main] INFO  io.github.abarhub.vfs.core.plugin.audit.VFS4JAuditPlugins - create VFS4JAuditPlugins\n18:48:13.711 [main] INFO  io.github.abarhub.vfs.core.plugin.audit.VFS4JAuditPlugins - init VFS4JAuditPlugins: plugins1\n18:48:13.714 [main] INFO  io.github.abarhub.vfs.core.config.VFS4JConfig - config plugins: {plugins1=io.github.abarhub.vfs.core.plugin.audit.VFS4JAuditPlugins@7e5afaa6, plugins2=io.github.abarhub.vfs.core.plugin.unclosed.VFS4JUnclosedPlugins@63a12c68}\n18:48:13.721 [main] INFO  io.github.abarhub.vfs.core.api.VFS4JDefaultFileManager - End initialization\n18:48:13.723 [main] INFO  io.github.abarhub.vfs.core.plugin.audit.VFS4JAuditPlugins - deleteIfExists for file dir1:fichier1.txt\n18:48:13.727 [main] INFO  io.github.abarhub.vfs.core.plugin.audit.VFS4JAuditPlugins - write for file dir1:fichier1.txt\n18:48:13.727 [main] INFO  org.vfs4j.example.simple.Main - create dir1:fichier1.txt\n18:48:13.728 [main] WARN  io.github.abarhub.vfs.core.plugin.audit.VFS4JAuditPluginsFactory - open for 1 (path=dir1:fichier1.txt)\n18:48:13.736 [VFS4JUnclosedPlugins.plugins2] ERROR io.github.abarhub.vfs.core.plugin.audit.VFS4JAuditPluginsFactory - finalizer for 1 (path=dir1:fichier1.txt, duration=PT0.0070009S)\n18:48:18.739 [main] INFO  org.vfs4j.example.simple.Main - end\n18:48:18.739 [main] INFO  org.vfs4j.example.simple.Main - Fin du programme\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabarhub%2Fvfs4jexample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabarhub%2Fvfs4jexample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabarhub%2Fvfs4jexample/lists"}