From: Jeremy Bopp Date: 2010-10-28T00:38:23+09:00 Subject: Re: Delete the files from mac system connected by windows. On 10/27/2010 5:27 AM, Rilindo Foster wrote: > Mac is Unix, so the file path is going to be different - it's a forward slash, rather than backslash: > >>> Dir.chdir("\\Users\\rilindo\\src\\test") > Errno::ENOENT: No such file or directory - \Users\rilindo\src\test > from (irb):3:in `chdir' > from (irb):3 >>> Dir.chdir("/Users/rilindo/src/test") > => 0 >>> Dir.pwd > => "/Users/rilindo/src/test" This will only apply if the Ruby script is actually run on the Mac itself rather than on the Windows system. The OP is trying to run the script on Windows while accessing the directory to be processed on the Mac via Windows file sharing. The backslashes are appropriate in this case; however, Windows /will/ use backslashes and forward slashes mostly interchangeably. :-) -Jeremy