What is the organization of the EQSL image download directory?

Need help? - Post here and we will find a solution for you.
Locked
WK2Y
Novice Class
Posts: 4
Joined: 28 Jun 2016, 19:09

What is the organization of the EQSL image download directory?

Post by WK2Y »

I can see that the images in the EQSL image download directory are arranged by years, but I can't make sense of the subfolders. They are increasing numbers, e.g., 1,6, 15, etc. I thought at first the number might be the day of the year (1 to 365), but I see the numbers go well beyond 365.
Thanks in advance.
73
Bob
WK2Y
User avatar
G4POP
Log4OM Alpha Team
Posts: 11594
Joined: 21 Jan 2013, 14:55
Location: Burnham on Crouch, Essex UK

Re: What is the organization of the EQSL image download directory?

Post by G4POP »

I think you will find its a Log4OM internal reference to enable the QSL to be linked to the QSO or download, only Lele can answer this
73 Terry G4POP
WK2Y
Novice Class
Posts: 4
Joined: 28 Jun 2016, 19:09

Re: What is the organization of the EQSL image download directory?

Post by WK2Y »

That would make more sense then some of the theories I have come up with.
Thanks for getting back to me.
73
Bob
WK2Y
User avatar
K8SMS
Novice Class
Posts: 5
Joined: 10 Jan 2016, 15:53

Re: What is the organization of the EQSL image download directory?

Post by K8SMS »

My eQSLs are arranged in the DXCC "Entity" Numbers, i.e., 1=Canada, 291=USA K/N/W, 248=Italy, 223=G/GX/M, etc.
WK2Y
Novice Class
Posts: 4
Joined: 28 Jun 2016, 19:09

Re: What is the organization of the EQSL image download directory?

Post by WK2Y »

Now that does make sense!
Thanks for getting back to me and Happy 4th.
73
Bob
WK2Y
User avatar
G4POP
Log4OM Alpha Team
Posts: 11594
Joined: 21 Jan 2013, 14:55
Location: Burnham on Crouch, Essex UK

Re: What is the organization of the EQSL image download directory?

Post by G4POP »

We learn something every day, why did I not think of that :oops:
73 Terry G4POP
User avatar
IW3HMH
Site Admin
Posts: 2988
Joined: 21 Jan 2013, 14:20
Location: Quarto d'Altino - Venezia (ITA)
Contact:

Re: What is the organization of the EQSL image download directory?

Post by IW3HMH »

Path is build as follow:

If STATION CALLSIGN is not set in your log
\GENERIC\ + year + \ + dxcc
else
\<STATIONCALLSIGN>\ + year + \ + dxcc

That way you can have all QSL of a specific year, divided into dxcc codes.
This helps keeping the number of files into folder to a reasonable number even for large logs.

Nerds will enjoy :)

Code: Select all

           try
            {
                string path = string.Empty;
                #region Path
                if (string.IsNullOrEmpty(qso.StationCallsign))
                {
                    path = Constants.Log4OMQSLFolder.TrimEnd('\\') + "\\GENERIC\\";
                }
                else
                {
                    path = Constants.Log4OMQSLFolder.TrimEnd('\\') + "\\" + qso.StationCallsign.Replace("\\", "-").Replace("/", "-") + "\\";
                }

                path += qso.QsoDate.Substring(0, 4) + "\\";
                if (string.IsNullOrEmpty(qso.Dxcc) == false && qso.Dxcc != "0")
                {
                    if (Directory.Exists(path + qso.Dxcc.Trim()) == false)
                    {
                        Directory.CreateDirectory(path + qso.Dxcc.Trim());
                    }
                    path += qso.Dxcc.Trim() + "\\";
                }
                else
                {
                    if (Directory.Exists(path + "UNDEFINED") == false)
                    {
                        Directory.CreateDirectory(path + "UNDEFINED");
                    }
                    path += "UNDEFINED" + "\\";
                }
                #endregion
                return path;
            }
            catch (Exception exc)
            {
                LogWriter.Write(exc);
                return string.Empty;
            }
Daniele Pistollato - IW3HMH
WK2Y
Novice Class
Posts: 4
Joined: 28 Jun 2016, 19:09

Re: What is the organization of the EQSL image download directory?

Post by WK2Y »

Probably a little more in depth than I really need, but I do appreciate the reply.
73 and thanks.
Bob
WK2Y
User avatar
IW3HMH
Site Admin
Posts: 2988
Joined: 21 Jan 2013, 14:20
Location: Quarto d'Altino - Venezia (ITA)
Contact:

Re: What is the organization of the EQSL image download directory?

Post by IW3HMH »

Yes, deeper but usually some users like to open the car to see what is moving it... and sometime showing the code could be nicer and easier to understand...
Daniele Pistollato - IW3HMH
Locked