Jump to content




Trouble Copying Files


  • You cannot reply to this topic
6 replies to this topic

#1 playlocker

  • New Members
  • 1 posts

Posted 06 August 2013 - 08:50 AM

I've tried "cp disk/programName /", but it does'nt work. It just print: "file:13:Access Denied"

#2 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 06 August 2013 - 07:02 PM

I've split this into a new topic.

#3 subzero22

  • Members
  • 97 posts

Posted 06 August 2013 - 11:34 PM

are you trying to make an install program or just copy a file from a disk? If it's just a program from a disk you would do "cp disk/programName name" without quates. If you want to make an install program you would want something like this. fs.copy("disk/programName" , "name")

#4 jay5476

  • Members
  • 289 posts

Posted 07 August 2013 - 12:44 AM

I believe that "/" is the default directory or can be used as, so you are trying to copy to a directory and it wont be allowed(acsess denied) try copying to a different programName

#5 svdragster

  • Members
  • 222 posts
  • LocationGermany

Posted 07 August 2013 - 09:12 AM

If you want to copy something on a disk or from a disk, you have to go to the main dir first.
So you have to write fs.copy("/disk/YourProgram", "/otherProgramName")

#6 reububble

  • Members
  • 72 posts
  • LocationBehind you

Posted 07 August 2013 - 10:42 AM

If there's still an error, it could also be because you didn't save the file correctly. This has happened to me before and the best way to sort it out (other than making sure it saves properly in the first place) is to Ctrl+R

#7 TheOddByte

    Lazy Coder

  • Members
  • 1,607 posts
  • LocationSweden

Posted 07 August 2013 - 02:49 PM

I don't know but when you get the "access denied" error sometimes it may be because of that you've saved a file and forgot to close it
file = fs.open("example","w")
file.writeLine("print('Hello World')")
And thus it stays open and I now that you can't delete it and I think it's the same for copying etc.
Try rebooting the computer and then see if you can copy the file, If it's successful the file will be blank though since my guess is that you've messed up with a file saving and forgot to close it..
file = fs.open("example","w")
file.writeLine("print('Hello World')")
file.close() -- Closing the file so it doesn't error

Please let us know if this works now ;)





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users