File system adapter implementation for local filesystem operations.
Provides concrete implementation of IFileSystemAdapter protocol using Java I/O for local filesystem access.
File system adapter implementation for local filesystem operations. Provides concrete implementation of IFileSystemAdapter protocol using Java I/O for local filesystem access.
(create-file-system-adapter)(create-file-system-adapter base-path)Create a new file system adapter for local filesystem operations.
The adapter operates relative to a base path, making all file operations relative to that path. This enables safer operations and easier testing.
Args: base-path - String base path for all file operations (optional, defaults to ".")
Returns: FileSystemAdapter instance implementing IFileSystemAdapter
Examples: ;; Use current directory as base (def adapter (create-file-system-adapter))
;; Use specific directory as base (def adapter (create-file-system-adapter "/tmp/output"))
;; All operations are relative to base path (write-file adapter "test.txt" "content") ; writes to /tmp/output/test.txt
Create a new file system adapter for local filesystem operations. The adapter operates relative to a base path, making all file operations relative to that path. This enables safer operations and easier testing. Args: base-path - String base path for all file operations (optional, defaults to ".") Returns: FileSystemAdapter instance implementing IFileSystemAdapter Examples: ;; Use current directory as base (def adapter (create-file-system-adapter)) ;; Use specific directory as base (def adapter (create-file-system-adapter "/tmp/output")) ;; All operations are relative to base path (write-file adapter "test.txt" "content") ; writes to /tmp/output/test.txt
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |