Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to include the base (root directory) to the results? #270

Closed
soubhikchatterjee opened this issue May 27, 2020 · 1 comment
Closed

How to include the base (root directory) to the results? #270

soubhikchatterjee opened this issue May 27, 2020 · 1 comment
Assignees

Comments

@soubhikchatterjee
Copy link

Environment

  • OS Version: mac os 10.14.6 (18G4032)
  • Node.js Version: v12.4.0

Actual behavior

If i specify the path /var/www/html/wallpapers it shows the list of files and folder that are inside the 'wallpapers' folder.

Expected behavior

I want to get the list of files and folder inside the "wallpapers" folder along with the folder "wallpapers" as part of the list.

Code sample

 
  const stream = fg.stream(["/var/www/html/wallpapers"], {
    dot: false,
    onlyFiles: false,
    absolute: false,
    caseSensitiveMatch: false
  });
@mrmlnc mrmlnc self-assigned this May 27, 2020
@mrmlnc
Copy link
Owner

mrmlnc commented May 27, 2020

Duplicate for #47.

@mrmlnc mrmlnc closed this as completed May 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants