question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Question] Matching parent and current directory

See original GitHub issue

We have an ASP.NET project, that contains a web project, which includes the package.json.

The directory tree looks like this:

Root dir
.git
Data
      Some.cs
BussinessLogic
      Other.cs
Web
      Layout.cshtml
      package.json

According to the Readme.md I tried this wildcard: …/**/*.{cs,cshtml}

Unfortunately it doesn’t match the files in the Web directory, so I have to use two patterns to cover all folders in the repository: “…/**/.{cs,cshtml}": [ …commands ], ".{cs,cshtml}”: [ …commands ] It’s not the best, becaues the commands have to run multiple times and they have a noticable boot time.

How can I reach what I want?

I would appreciate if somebody could help me. Thanks in advance!

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
iirojcommented, Apr 4, 2022

Let’s close this old ticket in favor of https://github.com/okonet/lint-staged/issues/1102

Read more comments on GitHub >

github_iconTop Results From Across the Web

Get parent of current directory from Python script
To get the parent directory of the directory containing the script (regardless of the current working directory), you'll need to use __file__ ....
Read more >
find searching in parent directories instead of subdirectories
So running git rev-parse --show-toplevel prints out the $GOPATH directory, not the ~/projects directory. This solution solves that problem. I realize this is...
Read more >
Bash path glob matching dotfiles and parent in pwd - Super User
If you want all the dot files anywhere in your current directory tree, you can use find as shown here using $(...) command...
Read more >
How to print parent working directory - Ask Ubuntu
In my opinion, echo is complicating your question. you just need to do as @ByteCommander suggested, the rest of your command is fine....
Read more >
File path formats on Windows systems | Microsoft Learn
In this article, learn about file path formats on Windows systems, such as traditional DOS paths, DOS device paths, and universal naming ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found