We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f745535 commit a93b5fbCopy full SHA for a93b5fb
src/requests.ts
@@ -64,10 +64,11 @@ export async function getContents(
64
'drives/' + driveName + '/' + options.path,
65
'GET'
66
);
67
+ const isDir: boolean = PathExt.extname(options.path) === '';
68
69
if (response.data) {
70
// listing the contents of a directory
- if (options.path.indexOf('.') === -1) {
71
+ if (isDir) {
72
const fileList: IContentsList = {};
73
74
response.data.forEach((row: any) => {
0 commit comments