'LinKin Posted February 7, 2015 Share Posted February 7, 2015 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. Link to comment
vx89 Posted February 7, 2015 Share Posted February 7, 2015 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)? Link to comment
'LinKin Posted February 7, 2015 Author Share Posted February 7, 2015 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..) Link to comment
4O4 Posted February 7, 2015 Share Posted February 7, 2015 fileCreate("sub/folder/file.ext") creates a file and also all needed parent directories if they don't exist (sub/folder in this case). Link to comment
'LinKin Posted February 7, 2015 Author Share Posted February 7, 2015 Oh, I didn't know it.. Well thank you! Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now