Exemplo n.º 1
0
        private string GetDirName(ArchiveContent ci)
        {
            string dir;

            if (this.commandArgs.Length == 2)
            {
                dir = this.commandArgs[1];
            }
            else
            {
                dir = Path.GetFileNameWithoutExtension(this.commandArgs[0]);
            }

            return(dir);
        }
Exemplo n.º 2
0
        private static string CreatePath(string dir, int i, ArchiveContent ci)
        {
            string proposedName = i.ToString() + "_" + ci.Name + "_" + ci.Description;

            return(Path.Combine(dir, Santizie(proposedName)));
        }