Select all files from directory that contain file with given name - scope

I would like to create scope that contain all files from directory that contain files with given names.
My example pseudo-pattern:
file:*/box-wideo.tpl/./ *
I mean all catalogues (and it's content) that contain file box-wideo.tpl

Scopes do not support conditional inclusion (e.g. "include folder IF it has specific file in it").
Scopes work on file/folder names directly, i.e. "include files that match this pattern but exclude these that match another pattern).
Therefore it's not possible to do what you are asking for.
References to the manual:
http://www.jetbrains.com/phpstorm/webhelp/scope-language-syntax-reference.html
http://www.jetbrains.com/phpstorm/webhelp/scopes.html

Related

How to use Wildcard Filenames in Azure Data Factory SFTP?

I am using Data Factory V2 and have a dataset created that is located in a third-party SFTP. The SFTP uses a SSH key and password. I was successful with creating the connection to the SFTP with the key and password. I can now browse the SFTP within Data Factory, see the only folder on the service and see all the TSV files in that folder.
Naturally, Azure Data Factory asked for the location of the file(s) to import. I use the "Browse" option to select the folder I need, but not the files. I want to use a wildcard for the files.
When I opt to do a *.tsv option after the folder, I get errors on previewing the data. When I go back and specify the file name, I can preview the data. So, I know Azure can connect, read, and preview the data if I don't use a wildcard.
Looking over the documentation from Azure, I see they recommend not specifying the folder or the wildcard in the dataset properties. I skip over that and move right to a new pipeline. Using Copy, I set the copy activity to use the SFTP dataset, specify the wildcard folder name "MyFolder*" and wildcard file name like in the documentation as "*.tsv".
I get errors saying I need to specify the folder and wild card in the dataset when I publish. Thus, I go back to the dataset, specify the folder and *.tsv as the wildcard.
In all cases: this is the error I receive when previewing the data in the pipeline or in the dataset.
Can't find SFTP path '/MyFolder/*.tsv'. Please check if the path exists. If the path you configured does not start with '/', note it is a relative path under the given user's default folder ''. No such file .
Why is this that complicated? What am I missing here? The dataset can connect and see individual files as:
/MyFolder/MyFile_20200104.tsv
But fails when you set it up as
/MyFolder/*.tsv
I use Copy frequently to pull data from SFTP sources. You mentioned in your question that the documentation says to NOT specify the wildcards in the DataSet, but your example does just that. Instead, you should specify them in the Copy Activity Source settings.
In my implementations, the DataSet has no parameters and no values specified in the Directory and File boxes:
In the Copy activity's Source tab, I specify the wildcard values. Those can be text, parameters, variables, or expressions. I've highlighted the options I use most frequently below.
You can specify till the base folder here and then on the Source Tab select Wildcard Path specify the subfolder in first block (if there as in some activity like delete its not present) and *.tsv in the second block.
enter image description here

Can i exclude a file from a folder but not exclude files with same name from sub folder - InstallShield 2016 Dynamic Linking?

In InstallShield 2016 [Basic MSI Project] Dynamic Linking settings for a component, Can i exclude a file say with name A and not exclude the files with name A in subfolders.
Below settings, today excludes file with name A from all folders including the sub folders.
No, the settings for a single dynamic file link are unable to do that. Depending on the number of subdirectories involved, you may prefer to create one dynamic link for the top-level directory, excluding the file name, and one dynamic link for each subdirectory, not excluding the file name.
(In general I prefer avoiding dynamic file links. They make it too easy to violate component rules, or drop required files, on accident.)

How can I tell PHPStorm to find references to rewritten URLS?

I wanted to rename one of my files, mypage.php into myprofile.php, but PHPStorm does not find any file references.
In the code, mypage.php is referenced without the file extension. For example:
<a href='../user/mypage/'>
So it has to look for mypage, not mypage.php and rename it myprofile, without file extension.
How can I tell the program to do this?
IDE cannot do that because (as you have mentioned yourself) the file name does not match actual URL reference.
Your only option here is to use ordinary Find & Replace functionality, e.g. Replace in Path to find all occurrences of /user/mypage/ and replace them into /user/myprofile/ in all files in a project (note; you can limit the scope for this action to a specific folder or custom scope -- check docs)

SUSY organization files?

I use method mobile first or a reponive webite and i use susy. How organize files _forms _typo _layout,_mixins etc.. for mobile (default) and breakpoints (tablet, desktop) and to have output files :
mobile.css
tablet.css
desktop.css
Thanks
Sass/Compass+Susy will create a file for every file in your source directory that is not preceded by an underscore.
So, simply place the code you want generated for those style sheets in files located in the source directory using any mixins from your own partials (files preceded by an underscore) or any of the extensions you're including on your project (such as susy)
A great document that talks about structuring your project is here: http://compass-style.org/help/tutorials/extensions/
Something else to look at: http://compass-style.org/help/tutorials/best_practices/
Great
i understand the technics with '_' files not generated but i search sample organization iles or responive website with susy .
if i use multiple files for layout header etc... (include or each at-breakpoint) the css file result contains miltiple declaration #media.... and not grouped .

How do you do string replacement in MSBuild 4.0?

After inputting an ItemGroup containing a list of file names, I'm trying to swap the extensions to something different. For example, I want file.foo converted to file.bar. Is this possible within MSBuild?
Thanks
If you already have an item group containing the files for which you want to change the name, just use that as input to a Copy or Move task and modify its metadata. Here is a list of common item metadata.
<!-- The list of .foo files is in the ItemGroup myFiles -->
<Copy SourceFiles="#(myFiles)" DestinationFiles="%(myFiles.Filename).bar" />
Metadata is accessed by %(/varName/./metadata/). In this example, I am setting the extension to whatever I want by only including the original Filename metadata in the output.

Resources