
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How to Create Folder in Destination (Easy)
Hello,
I just want to create a folder in my Desktop.
Currently, I am doing that with tFileCopy, which does the job, but it throws an error saying it cannot find the file. Obviously, it can't find it because I left it blank (see picture), because I DO NOT want to copy a file, just create a folder. Is there a way to do that?
I have tested other components, like tFileList or tFileTouch, but none do exactly what I need.
Is it possible to just create a folder?
Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
It's maybe not the best solution but on my side I would have done something like :
- tFixedFlowInput with 1 column empty and parameter Number of Rows set to 0
- tFileOutputDelimited with the file specified in the folder you want to create, option "Don't generate empty file" checked and option "Create directory if do'nt exist" checked (these 2 options in Advanced settings tab)
=> tfixedflowinput generate 0 data, so the file is empty and so not generated but the folder is created, empty.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
It's maybe not the best solution but on my side I would have done something like :
- tFixedFlowInput with 1 column empty and parameter Number of Rows set to 0
- tFileOutputDelimited with the file specified in the folder you want to create, option "Don't generate empty file" checked and option "Create directory if do'nt exist" checked (these 2 options in Advanced settings tab)
=> tfixedflowinput generate 0 data, so the file is empty and so not generated but the folder is created, empty.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Good enough, that does the job with no errors.
Thank you!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You could also use a single tCreateTemporaryFile component to acheive that.
You just need to specify your directory and let all as defaut.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can also use a tSystem to execute a command.
Regards
Shong
