Catolog query returns path with '\' instead of '/'

RESTful knowledge exchange

Catolog query returns path with '\' instead of '/'

Veeam Logoby Mardock » Tue Dec 16, 2014 9:35 am

Hi,

if I make this query /catalog/vms/{VMNAME}/vmRestorePoints/{ID}/guestfs/C:/Users/?action=listAll to get
all files and directory in C:/Users the xml response contains Path with '/' char
Code: Select all
<FileSystemEntries>
   <Files>
      <FileEntry>
         <Path>C:/Users/desktop.ini</Path>
      </FileEntry>
   </Files>
   <Directories>
      <DirectoryEntry>
         <Path>C:/Users/Administrator</Path>
      </DirectoryEntry>
   </Directories>
</FileSystemEntries>


If I query any other path of file system then the xml response contains Path with '/' char.

Only if I make this query /catalog/vms/{VMNAME}/vmRestorePoints/{ID}/guestfs/C:/?action=listAll to get
all files and directory in C: then the xml response contains Path with '\' char instead of '/' char.

Example:
Code: Select all
<FileSystemEntries> 
   <Files>
      <FileEntry>
          <Path>C:\bootmgr</Path>
      </FileEntry>
   </Files>
   <Directories>
      <DirectoryEntry>
         <Path>C:\Users</Path>
      </DirectoryEntry>
   </Directories>
</FileSystemEntries>

Any idea?

Thanks,
Mardock.
Mardock
Influencer
 
Posts: 19
Liked: never
Joined: Thu Jul 10, 2014 3:40 pm

Re: Catolog query returns path with '\' instead of '/'

Veeam Logoby v.Eremin » Thu Dec 18, 2014 1:56 pm

That's by design and has to do with the way our catalog service forms paths. But does that cause any issues in your case? If so, what are those problems?

Thanks.
v.Eremin
Veeam Software
 
Posts: 13266
Liked: 968 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: Catolog query returns path with '\' instead of '/'

Veeam Logoby Mardock » Thu Dec 18, 2014 2:27 pm

Hi,
if I show at the same time more path they have different separator char so they seem inconsistent.

I will replace the "\" with "/".

Thank you,
Mardock.
Mardock
Influencer
 
Posts: 19
Liked: never
Joined: Thu Jul 10, 2014 3:40 pm


Return to RESTful API



Who is online

Users browsing this forum: No registered users and 2 guests