Skip to content

Commit 9719cb5

Browse files
fix: Update deprecated constant usage (#885)
1 parent 94e2748 commit 9719cb5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/helpers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { fs, system } from 'appium/support';
77
*/
88
export async function isWriteable(filePath) {
99
try {
10-
await fs.access(filePath, fs.W_OK);
10+
await fs.access(filePath, fs.constants.W_OK);
1111
if (system.isWindows()) {
1212
// On operating systems, where access-control policies may
1313
// limit access to the file system, `fs.access` does not work

0 commit comments

Comments
 (0)