Opened 13 years ago

Closed 13 years ago

#4 closed task (fixed)

Update assocation logic to allow multiple dots and longer extensions

Reported by: dwgras Owned by: Gregg Young
Priority: major Milestone: Release_3.8
Component: fm/2 base Version: 3.08
Keywords: Cc: dwgras@…

Description

Allow for more than 1 extension and more than 3 characters in extensions

Change History (11)

comment:1 Changed 13 years ago by Gregg Young

The limitation is in filldir.c IDFile(). The code is pretty primitive. It supports only 3 character extensions for a fixed number of file types and there is not way to make this more flexible without a complete rewrite.

comment:2 Changed 13 years ago by Gregg Young

Owner: changed from StevenHL to Gregg Young

New flag for associations related to length from final period.

0 - no period strnchar \ to cut filename then strnchar . = null 1 - period followed by nothing or wild card cut filename token on . use final token strlen = 1 2 - period followed by 1 char same as 1 but strlens = 2 3-100 same as above (no number limit imposed)

string compare (no case) to association filemask 0s & 1s would be comp to masks of style "xxx" "xxx." "xxx.*" after dropping the '.' & '*' from all strings.

Need to handle xxx* mask strcpy filename to string of strlen = mask - 1 run against all filenames

string compare for .xxx final token from above (extension of any length) would drop use strlens then compare to the appropriate flag numbered filemasks *xxx would be handled by replacing the '*' with a '.'

Assumptions

  1. Final extension is the file type indicator as opposed to first extention
  2. Associations by filename should be allowed including allowing wild card extensions
  3. Compare would be done directly on any filenames without wildcards
  4. Wildcards only at beginning and end. Could handle ones in the middle but do we need to?
  5. Arbitrarily long extensions permitted
  6. Exact matchs

comment:3 Changed 13 years ago by Gregg Young

Status: newassigned

comment:4 Changed 13 years ago by Gregg Young

Status: assignednew

comment:5 Changed 13 years ago by Steven Levine

Summary: Update assocation logicUpdate assocation logic to allow multiple dots and longer extensions

comment:6 Changed 13 years ago by Steven Levine

Reporter: changed from Gregg Young to dwgras

comment:7 Changed 13 years ago by Gregg Young

Owner: Gregg Young deleted

comment:8 Changed 13 years ago by Gregg Young

Milestone: Release_3.8
Version: 3.08

comment:9 Changed 13 years ago by Gregg Young

Owner: set to Gregg Young

comment:10 Changed 13 years ago by Gregg Young

Status: newassigned

comment:11 Changed 13 years ago by Gregg Young

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.