Copy() function doesn't work with big files

Find out why the . goes before the /

Moderator: Paul Tuersley

Post Reply
User avatar
Cad81
Posts: 1
Joined: May 1st, 2019, 2:56 pm

Hi guys,

i have a problem with copy() function. With small files, it works fine, but bigger files (about 4GB ) are interrupted at variable size (same size for the same file, but different size from other files). The drive is NTFS formatted and there are a lot of free GB.

PS: the script is for premiere, but i think the issue is not software related.

Thank you!
User avatar
zlovatt
Posts: 47
Joined: October 31st, 2016, 5:00 pm
Location: Portland
Contact:

A better approach may be to use

Code: Select all

system.callSystem()
instead, and write OS-level commands to copy the file. This way is more robust and much more flexible.
Cad81_temp
Posts: 1
Joined: August 19th, 2019, 2:45 pm

zlovatt wrote: May 7th, 2019, 4:47 pm A better approach may be to use

Code: Select all

system.callSystem()
instead, and write OS-level commands to copy the file. This way is more robust and much more flexible.
Ops, sorry for the delay and thank you. I posted in several forum and i partially resolved with a workaround (execute a .bat)

Now, i have some questions:

1- the callsystem() is available also for premiere pro? Searching, i read that it doesn't work in premiere, but there is a similar function, something like "window.cep.process.createProcess()"..do you know anything about this?

2- also for premiere pro, is possible tu use system.osName to know if the running os is win or mac?

3- the script i'm writing, copy a lot of file that has been used in the project, in a folder...with systemcall() [or window.cep...].
is a good idea to run the systemcall throught a for loop? (each iteration is a single file copy)
Or is better to make a batch file (win and mac) with all the copy() files command and then run it once?

Thank you again and sorry for my english :D
Post Reply