Filter files without dot

Filter files without dot

Postby teamdriveuser3 » 27 Jan 2012, 17:01

Hello,

i tried a filter to exclude files without a dot in the filename:

i tried:
[filePatterns]
...
excludes\8\filePattern="^([^\.]+)$" ;or "^[^\.]+$"
excludes\8\modules=71
excludes\8\type=5
...

but it did not work. any Ideas?

Thank you.
teamdriveuser3
 
Posts: 17
Joined: 20 May 2011, 22:42

Re: Filter files without dot

Postby Detlef Schmuck » 18 Apr 2012, 07:49

We will introduce an improved filter mechanism in TeamDrive 3.

Please feel free to tell us your wishes and requirements. We will see how to support them.

- detlef
Detlef Schmuck
TeamDrive Team Member
 
Posts: 673
Joined: 07 Jul 2008, 19:20

Re: Filter files without dot

Postby Amadeus » 30 Apr 2012, 21:27

Hello,

I have read several posts concerning how to exclude files or folders. I am already using the internal method that was available with TeamDrive 2. I have lately installed TeamDrive 3 Beta and I see that there's no filtering mechanism added. What's more, it appears that the method used in TeamDrive 2, is no longer available (no fsConfig folder).

Any ideas of how we can exclude files or folders with TeamDrive 3 Beta? Is it possible? If not, we will stick with TeamDrive 2 until the final release of TeamDrive 3.

Regards,
Perikles C. Stephanidis
Amadeus
 
Posts: 2
Joined: 29 Apr 2012, 17:01

Re: Filter files without dot

Postby Kenneth » 16 Oct 2012, 14:09

Sorry for the late reply.

Info about File Filtering on TeamDrive 3

When editing the TeamDrive filter file it is important that you use a standard text editor. We recommend using TextEdit (OS X) or NotePad (Windows).
WordPad (Windows), for instance, will add text formatting which could possibly cause disruptions when applying the filter.

When saving the file it is important to save it as a UTF-8 encoded file and to not add a ".txt" extension:

On Windows these options can be found during the "save as" process. Under 'Save as type' select 'All Files'.
Under 'Encoding' select UTF-8

On OS X these options can be found under the preferences pane. Uncheck the box "Add '.txt' extension to plain text files".
One the "Open and Save" tab and under the section "Plain Text File Encoding" > "Saving Files" select "Unicode (UTF-8).


"teamdrive.fsfilter" is the standard filter file. The file can be found in
the "user shared path":

Windows: "C:/ProgramData/TeamDrive3/"
(If the 'ProgramData' folder is not visible, search for the folder using,
"%programdata%")
On Windows XP there is, however, no shortcut to this folder. You have to manually navigate to this folder. The folder is also hidden. C:/Documents and Settings/All Users/ApplicationData/TeamDrive3. You can enable hidden folders in the "Folder Options" settings. This can be found in the "Control Panel". Start > Settings > Control Panel > Folder Options > View > Hidden files and folders > Show hidden files, folders and drives.

Linux: "/etc/"

Mac OS X: "/Users/Shared/"

If the "teamdrive.fsfilter" has been moved from its default location,
the new location of the file needs to be defined in the "teamdrive.ini" file.

The "teamdrive.ini" file can also be found in the "user shared path".

To define the new location of the "teamdrive.fsfilter" file use:

fs-filter-file=<Pfad><Name>



The filter functions are based on Wildcard Matching.
(the ability to identify a group of files by using wildcards)

Any character represents itself apart from those mentioned below. Thus c matches the character c.

?: Matches any single character. It is the same as . in full regexps.

*: Matches zero or more of any characters. It is the same as .* in full regexps.

[...]: Sets of characters can be represented in square brackets, similar to full regexps. Within the character class, like outside, the backslash has no special meaning.


#: Denotes that everything follwing is treated as a comment.

Examples:


Filtering Data

#Filter all "newname.txt" files

*/newname.txt



Filtering based on file ending

#Filter all ".lock" files

*.lock



Filtering Sub-Folders

#Filter Contents of Folders
#ignore 'newfolder' folders and files

*/newfolder
*/newfolder/*

To filter contents of folders, 2 filter expressions have to be written.
The first filter excludes all folders called "newfolder".
The second filter excludes all the contents of folders called "newfolder".
Kenneth
 
Posts: 1277
Joined: 29 Aug 2012, 15:11


Return to Feedback

Who is online

Users browsing this forum: No registered users and 25 guests