-
2 Attachment(s)
Clone Folder Widget!
This widget uses only 2 objects to clone a folder and all sub folders and files to another folder. all you need to do is set the input file and output file strings contained in the folder tree object and it will automatically copy the folder.
known issues: will not overwrite a file... the output name cannot be the same as an existing folder in the directory.
-
Re: Clone Folder Widget!
-
Re: Clone Folder Widget!
Please, consider this, since you're posting this as a public example.
-
Re: Clone Folder Widget!
I will now try to decipher the meaning of Nifflas' comment.
The event editor only shows 3 items, but also says All events, All objects. This leads me to believe that the middle objects were cropped out, rather than hidden.
The objects at the side of the image are more cryptic. Is there a meaning?
Can, Cat, Food
Popup, Message, Box, Alert, Notice
Disc, CD, DVD
Sign
What could these mean?
Signs Can Popup?
Can the popups, ditch(discthcth) the signs?
The can is the only thing I can be sure of it's meaning. Clearly it means Nifflas likes cat food. Or else he didn't feed his cat(s).
Does the popup refer to a notice, more specifically an alert, stating something is wrong. Actually, that is a confirmation dialog. Are you sure you are happy with the way this is done? Do you wish to continue?
Maybe the disc is amalgamous(4th time using that word today, still don't know what it means) with the Disc 2 of the MMF2 Case. Could that mean this work isn't original, as would make sense by the events being shown. Were they copied from another example?
The sign. On the roads it shows how far to the next potential destination. Does this mean the widget is unrefined and is far from being done? Or does it mean that it is getting close, but not there yet.
I will be quiet now.
-
Re: Clone Folder Widget!
Basically, which of these representations of the same set of events are the most helpful, given that you'd later want to come back and change your code, or if you'd like someone else to learn from it and follow your thoughts?
Commenting code is quick, easy, and essential. I comment everything, even if nobody else will see the code. Not commenting a public example that other users will see is beyond my understanding. It's like selling a can with an unidentified content, or forgetting to put the name of the location of a sign.
-
Re: Clone Folder Widget!
hehe I figured it out from the title of the picture :)
-
Re: Clone Folder Widget!
I'm sorry I'm apparently not as neat as some people.... I didn't really plan on looking at the code again, really, since it works fine... my apologies if this bugs you....
-
2 Attachment(s)
Re: Clone Folder Widget!
ok fine... for those of you who like comments I did it. While doing it, I even realized one event that wasn't needed. so... here it is fully commented...
-
Re: Clone Folder Widget!
You really do need to get in the habit of using comments. Not just for other people that need to read the source file, but for your own sanity in a large project. Any decent programmer will tell you commenting is a must no matter what coding langauge you use.
-
Re: Clone Folder Widget!
It's awesome that you did comment it!