I wanted to do the following actions.Delete some files from a location
in windows and mac system .
System1 ( win 7) ----> System2 (Win 7) which is working fine
pwd = Dir.pwd
FileUtils.rm_r Dir.glob(’*’),:force => true
System1 ( win 7 ) -----> System3 (MAC with Leopard 10.5)
I am trying to access the folder of the mac system by using window
explorer in my system1 and navigate to the
\System3\Users\teamcity\Library but its not successful.
Note:- the “teamcity” is the user name in the system1 and exactly same
name in the mac system as well as userid.
Workaround:- though I am using now PuTTY like
puts %x[c:\Program Files (x86)\PuTTY\plink -i “C:\Program Files
[email protected] “pwd”]
where the above command executed from System1
which is working ok and retrieving results as /Users/developer
[email protected] :- where developer is the current logged
in user to the mac system (i.e developers-iMac.local)
can anyone please guide me so that I can access the folders in Mac like
Then It would be easy for me to use Dir.chdir and move on