I am trying to change the permissions of a file in the below given way.
File.chmod(0777,"util\logger\Sample.txt"). But the issue is the Sample.txt is in given path util/logger/Sample.txt.
The above operations is failing because unable to find the file name Sample.txt. I tried in this way Dir.chdir("\util\logger") and then im doing File.chmod(0777,"Sample.txt").
So again i need to get back to my base folder to do other operations. I felt little bad about this way of developing code.
So any help in accessing directly a file from a directory with out changing the current directory will greatly help me.
Thanks in advance, Aditya