Skip to content

Commit 73ccd6c

Browse files
committed
Implemented docker dir
1 parent 0d43a04 commit 73ccd6c

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ Volumes listed in `iobBackup` are tagged for inclusion in ioBroker backup routin
180180
-->
181181

182182
## Changelog
183-
### 0.1.1 (2025-10-09)
183+
### **WORK IN PROGRESS**
184184
- (@GermanBluefox) Split the docker manager into pure docker commands and monitoring of own containers
185185

186186
### 0.0.3 (2025-09-25)

src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import type {
1818
Protocol,
1919
Security,
2020
VolumeMount,
21+
LsEntry,
2122
} from './types';
2223
import { existsSync, readFileSync } from 'node:fs';
2324
import JSON5 from 'json5';
@@ -46,6 +47,7 @@ export {
4647
type Protocol,
4748
type Security,
4849
type VolumeMount,
50+
type LsEntry,
4951
};
5052

5153
export default class DockerPlugin extends PluginBase {

src/lib/DockerManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1895,7 +1895,7 @@ export default class DockerManager {
18951895
removeOnExit: true,
18961896
tty: false,
18971897
stdinOpen: false,
1898-
command: ['ls', '-la', join('/data', path || '')],
1898+
command: ['ls', '-la', path ? join('/data', path || '').replace(/\\/g, '/') : '/data'],
18991899
mounts: [{ type: 'volume', source: volumeName, target: '/data', readOnly: true }],
19001900
});
19011901

src/types.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -729,4 +729,4 @@ export interface LsEntry {
729729
rawDate: string; // z.B. "Oct 9 14:17" oder "Oct 9 2024"
730730
isDir: boolean;
731731
isLink: boolean;
732-
}
732+
}

0 commit comments

Comments
 (0)