Multidmedia Limited (MDM)
Search
advanced search »    
Quick Links
advanced search »
   Tuesday September 7th 2010

 




Untitled Document
+
Products & Solutions
 
Products
- Zinc 3.0 Builder
- Zinc 3.0 Plug-In Windows
- Zinc 3.0 Plug-In Mac OSX
- Zinc 3.0 Plug-In Linux
- Zinc 3.0 Development Suite
- Inferno 1.0 Windows
- Inferno 1.0 Mac OSX
Solutions
- Developers
- Designers
- Education
   
+
Support & Resources
 
Support
- Support Home
- Technotes & Known Issues
- FAQs
- Contact Us
Resources
- Software Updates
- Software Release Notes
- Software Bug Management
- Developer Articles
- File Exchange
- LiveDocs
- Support Forums
   
+
Purchase Online
 
- Online Shop
- Find a Reseller
- Volume Licensing
   
+
Company
 
- About Multidmedia (MDM)
- Client Showcase
- Legal Information
- Job Opportunities
- Press Room
- Blog
   
 

breadcrumbs

Home > Support > Bugs

 

Software Bug Management & Tracking

The MDM Software Bug Management and Tracking System is used to track and monitor the progress of user reported software bugs. You can search for a reported issue below to track it's progress and/or to get more information on an outstanding technical issue.


Bug Report #ZNC-6997AW
Verified on 02 March 2010
mdm.FileSystem.copyFolder does not work if path ends with backslash (\)  
Reported By Staff Member
This issue is Pending and is marked as a Medium priority.
 
Zinc 3.0 > Windows > Wrapper/Projector > 3.0.18 > Incorrectly Functioning  
Description
mdm.FileSystem.copyFolder will silently fail to copy folder if source/target folder paths end with backslashes.

var sourceFolder:String = mdm.Application.path+"my_folder\\";
var targetFolder:String = mdm.Application.path+"target_folder\\";
mdm.FileSystem.copyFolder(sourceFolder, targetFolder);

Above won't result in my_folder copied into target_folder.

The desired feature support seems to be supporting both version of paths no matter if they ends with trailing backslash or not (the path/folder name should be valid - that is do not contain reserved characters and does not end with space or dot).

To repeat compile and run provided sample. The "copy" button should initiate mdm.FileSystem.copyFolder method that should copy included folder into new one within project root directory.

The sample code contains helper method that could be used to convert paths that are returned at runtime from other {mdm} script methods like mdm.Dialogs.BrowseFolder, etc:

function $$(path:String):String
{
if(path.length > 1 && path.lastIndexOf("\\") == path.length-1)
{
return path.substr(0, path.length-1);
}
return path;
}

that could be used as:

mdm.FileSystem.copyFolder($$(sourceFolder), $$(targetFolder));
Attached File(s)
Click Here to download the Attached File
Resolution
Pending

View all Pending Bug Reports » Report a new Software Bug/Issue »

 

 
Multidmedia Limited (MDM)

AddThis Social Bookmark Button
Copyright © 2002-2010 Multidmedia Limited (MDM) All rights reserved. Use of this website signifies your agreement to the Terms of Use.
Flash, Flex and associated Logos are the Registered Trademarks of Adobe Systems, Inc.
There are currently 27 Users Online.