/// <summary> Gets the list of all the files associated with this digital resource </summary>
        /// <param name="DigitalResource"> The digital resource object  </param>
        /// <returns> List of the file information for this digital resource, or NULL if this does not exist somehow </returns>
        public List <SobekFileSystem_FileInfo> GetFiles(BriefItemInfo DigitalResource)
        {
            string directory = Resource_Network_Uri(DigitalResource);

            try
            {
                if (Directory.Exists(directory))
                {
                    FileInfo[] files = (new DirectoryInfo(directory)).GetFiles();
                    List <SobekFileSystem_FileInfo> returnValue = new List <SobekFileSystem_FileInfo>();
                    foreach (FileInfo thisFile in files)
                    {
                        SobekFileSystem_FileInfo returnFile = new SobekFileSystem_FileInfo
                        {
                            Name          = thisFile.Name,
                            LastWriteTime = thisFile.LastWriteTime,
                            Extension     = thisFile.Extension,
                            Length        = thisFile.Length
                        };

                        returnValue.Add(returnFile);
                    }

                    return(returnValue);
                }
            }
            catch (Exception ee)
            {
                return(null);
            }

            return(null);
        }
        /// <summary> Gets the list of all the files associated with this digital resource </summary>
        /// <param name="DigitalResource"> The digital resource object  </param>
        /// <returns> List of the file information for this digital resource, or NULL if this does not exist somehow </returns>
        public List<SobekFileSystem_FileInfo> GetFiles(BriefItemInfo DigitalResource)
        {
            string directory = Resource_Network_Uri(DigitalResource);

            try
            {

                if (Directory.Exists(directory))
                {
                    FileInfo[] files = (new DirectoryInfo(directory)).GetFiles();
                    List<SobekFileSystem_FileInfo> returnValue = new List<SobekFileSystem_FileInfo>();
                    foreach (FileInfo thisFile in files)
                    {
                        SobekFileSystem_FileInfo returnFile = new SobekFileSystem_FileInfo
                        {
                            Name = thisFile.Name,
                            LastWriteTime = thisFile.LastWriteTime,
                            Extension = thisFile.Extension,
                            Length = thisFile.Length
                        };

                        returnValue.Add(returnFile);
                    }

                    return returnValue;
                }
            }
            catch (Exception ee)
            {
                return null;
            }

            return null;
        }
        private void Add_File_HTML(SobekFileSystem_FileInfo thisFileInfo, TextWriter Output, string url, bool includeSizeAndDate)
        {
            Output.WriteLine("<tr>");
            Output.WriteLine("<td><a href=\"" + url + thisFileInfo.Name + "\">" + thisFileInfo.Name + "</a></td>");
            Output.WriteLine("<td>&nbsp;</td>");

            if (includeSizeAndDate)
            {
                Output.WriteLine("<td>" + thisFileInfo.LastWriteTime.ToString() + "</td>");
            }

            string extension = thisFileInfo.Extension.ToUpper().Replace(".", "");
            string type = Extension_To_File_Type(extension, thisFileInfo.Name);
            Output.WriteLine("<td>" + type + "</td>");

            if (includeSizeAndDate)
            {
                Output.WriteLine("<td>&nbsp;</td>");
                int size_kb = (int)(thisFileInfo.Length / 1024);
                if (size_kb > 1024)
                {
                    size_kb = size_kb / 1024;
                    Output.WriteLine("<td align=\"right\">" + size_kb + " MB</td>");
                }
                else
                {
                    if (size_kb == 0)
                        size_kb = 1;
                    Output.WriteLine("<td align=\"right\">" + size_kb + " KB</td>");
                }
            }

            Output.WriteLine("</tr>");
            Output.WriteLine(includeSizeAndDate ? "<tr><td bgcolor=\"#e7e7e7\" colspan=\"6\"></td></tr>" : "<tr><td bgcolor=\"#e7e7e7\" colspan=\"3\"></td></tr>");
        }