Jump to content

Reading/Creating Files + Create Folders


'LinKin

Recommended Posts

Posted

Hello,

I've around 400 files that must be placed each one in a folder with the same name than the file, also, I must create a meta.xml file in each folder. (I think I can do it with fileCreate, fileWrite, etc..).

But how could I make a script that creates folders? - Or maybe in another programming language?

I am just trying to avoid doing this manually.

Thanks.

Posted

Should the folder include the file extension, or you might have multiple files with same name, but different prefix (e.g bla.dff and bla.txd and want them in directory bla)?

Posted

No, they are .map

And all of them have different names.

Example

Unnamed DD.map

Should become in a folder called "race-[dd]unnameddd" and inside of it there would be the

- Unnamed DD.map file

- meta.xml (containing map's name, etc..)

Posted
fileCreate("sub/folder/file.ext") 

creates a file and also all needed parent directories if they don't exist (sub/folder in this case).

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...