I require a file-management function for an existing ASP.NET Website, written in C#, for folder creation and retrieval.
The function:
public static string CreateRetrieveFolder(string ProjectName, int ProjectID, string Location, string TemplateFolderPath) should create a file-folder in the passed in location (parent folder path) and return the Folderpath. Also it should copy the full content of TemplateFolderPath into the new created folder.
The folder-name should be like
"[435]-My Project Name" where 435 is the ProjectID.
If the Project-Name contains characters, not allowed in the file system, the function should adjust the Folder name -> E.g. remove all non alphanumerical characters.
If a folder already exists in the location
with the same ProjectId, but a different name, the function should not create a folder (nor copy templatefolder), but return the path of the existing folder. (Project-Names can change, but ID remains the same).
Since in this project only time-constraint and working functionality is important, this will decide who gets the work.
## Deliverables
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables):
3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).
## Platform
IIS Server with ASP.NET (and C#)
Folder - Server on network (Linux server)